Examples of NullComponentMonitor


Examples of org.picocontainer.monitors.NullComponentMonitor

     * @param componentKey the search key for this implementation
     * @param componentImplementation the concrete implementation
     * @param parameters the parameters used for initialization
     */
    public ConstructorInjector(final Object componentKey, final Class<?> componentImplementation, Parameter... parameters) {
        this(componentKey, componentImplementation, parameters, new NullComponentMonitor(), new NullLifecycleStrategy(), false);
    }
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

     * @param parentContainer the parent container
     */
    public Reinjector(PicoContainer parentContainer) {
        this(parentContainer, parentContainer instanceof ComponentMonitorStrategy
                ? ((ComponentMonitorStrategy) parentContainer).currentMonitor()
                : new NullComponentMonitor());
    }
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

     * Creates a Log4JComponentMonitor with no Logger instance set.
     * The {@link LogManager LogManager} will be used to retrieve the Logger instance
     * at every invocation of the monitor.
     */
    public Log4JComponentMonitor() {
        delegate = new NullComponentMonitor();
       
    }
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

   * Creates a Slf4jComponentMonitor with no Logger instance set. The
   * {@link org.slf4j.LoggerFactory} will be used to retrieve the Logger
   * instance at every invocation of the monitor.
   */
  public Slf4jComponentMonitor() {
    delegate = new NullComponentMonitor();

  }
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

     * Creates a CommonsLoggingComponentMonitor with no Log instance set.
     * The {@link LogFactory LogFactory} will be used to retrieve the Log instance
     * at every invocation of the monitor.
     */
    public CommonsLoggingComponentMonitor() {
        delegate = new NullComponentMonitor();
    }
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

    private static final Logger logger = LoggerFactory.getLogger(PicoProvider.class);

    public PicoProvider() {
        this.picoContainer = new DefaultPicoContainer(new Caching(),
                new JavaEE5LifecycleStrategy(new NullComponentMonitor()), null);

        ComponentFactoryRegistry componentFactoryRegistry = new DefaultComponentFactoryRegistry();
        PicoComponentRegistry componentRegistry = new PicoComponentRegistry(this.picoContainer, componentFactoryRegistry);

        this.picoContainer.addComponent(componentRegistry);
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

        if (logger.isDebugEnabled()) {
            logger.debug("Request components are " + requestScoped);
        }

        MutablePicoContainer requestContainer = new DefaultPicoContainer(new Caching(), new JavaEE5LifecycleStrategy(
                new NullComponentMonitor()), sessionScope);

        for (Map.Entry<Class<?>, Class<?>> entry : requestScoped.entrySet()) {
            requestContainer.addComponent(entry.getKey(), entry.getValue());
        }
        for (Map.Entry<Class<?>, Class<?>> entry : prototypeScoped.entrySet()) {
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

        return false;
    }

    private MutablePicoContainer createSessionContainer(HttpSession session) {
        MutablePicoContainer sessionContainer = new DefaultPicoContainer(new Caching(), new JavaEE5LifecycleStrategy(
                new NullComponentMonitor()), this.appContainer);

        sessionContainer.addComponent(HttpSession.class, session);
        session.setAttribute(CONTAINER_SESSION_KEY, sessionContainer);

        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

        }

        logger.debug("Request components are {}", requestScoped);

        MutablePicoContainer requestContainer = new DefaultPicoContainer(new Caching(),
              new JavaEE5LifecycleStrategy(new NullComponentMonitor()), parentContainer);
        requestContainer.addComponent(HttpSession.class, request.getRequest().getSession());

        for (Map.Entry<Class<?>, Class<?>> entry : requestScoped.entrySet()) {
            requestContainer.addComponent(entry.getKey(), entry.getValue());
        }
View Full Code Here

Examples of org.picocontainer.monitors.NullComponentMonitor

        return false;
    }

    private MutablePicoContainer createSessionContainer(HttpSession session) {
        MutablePicoContainer sessionContainer = new DefaultPicoContainer(new Caching(), new JavaEE5LifecycleStrategy(
                new NullComponentMonitor()), this.appContainer);

        sessionContainer.addComponent(HttpSession.class, session);
        session.setAttribute(CONTAINER_SESSION_KEY, sessionContainer);

        logger.debug("Session components are {}", sessionScoped);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.