public DefaultFilterFactoryDelegate(IContainer container, Configuration config) { this(container, config, new ConstructorInjectionComponentAdapterFactory()); }
public ConstructorInjectionComponentAdapterFactory(boolean allowNonPublicClasses, ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy) { this.allowNonPublicClasses = allowNonPublicClasses; this.changeMonitor(monitor); this.lifecycleStrategy = lifecycleStrategy; }
public ComponentAdapter createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException { return new ConstructorInjectionComponentAdapter(componentKey, componentImplementation, parameters, allowNonPublicClasses, currentMonitor(), lifecycleStrategy); } }
/** * Creates a new container with a parent container. */ public CachingPicoContainer(PicoContainer parent) { this(makeComponentAdapterFactory(new ConstructorInjectionComponentAdapterFactory()), parent); }
/** * Creates a new container with a parent container. */ public ImplementationHidingPicoContainer(PicoContainer parent) { this(makeComponentAdapterFactory(new ConstructorInjectionComponentAdapterFactory()), parent); }
/** * Creates a new container with a parent container. */ public ImplementationHidingCachingPicoContainer(PicoContainer parent) { this(makeComponentAdapterFactory(new ConstructorInjectionComponentAdapterFactory()), parent); }
private static MutablePicoContainer createContainer(final Logger logger) { final ConstructorInjectionComponentAdapterFactory _nonCachingCAFactory = new ConstructorInjectionComponentAdapterFactory(); //false, new ConsoleComponentMonitor(System.out)); final ComponentAdapterFactory _cachingCAFactory = new CachingComponentAdapterFactory(_nonCachingCAFactory); final MutablePicoContainer _container = new DefaultPicoContainer(_cachingCAFactory); _container.registerComponentInstance(ComponentAdapterFactory.class, _nonCachingCAFactory); logger.debug("Created Top Level Container"); return _container; }
public COSNotificationService(ORB orb, MBeanServer mbeanServer, DynamicMBeanProvider mbeanProvider, String[] args) { super(); optionalORB_ = orb; properties_ = ConsoleMain.parseProperties(args); DynamicMBeanProvider _decoratedProvider = new UnregisterObjectNameProviderDecorator( mbeanServer, mbeanProvider); ComponentAdapterFactory _defaultCAF = new JMXExposingComponentAdapterFactory( new ConstructorInjectionComponentAdapterFactory(), mbeanServer, new DynamicMBeanProvider[] { _decoratedProvider }); ComponentAdapterFactory _cachingCAF = new CachingComponentAdapterFactory( _defaultCAF); container_ = new DefaultPicoContainer(_cachingCAF); container_.registerComponentInstance(ComponentAdapterFactory.class, _defaultCAF); }