Package org.picocontainer.monitors

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()), 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


        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

      return instanceFor(type) != null;
    }
  }
    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

    private final ComponentMonitor componentMonitor;
    private MutablePicoContainer container;
   
    InjectorImpl(Collection<Class<?>> components) {
        componentMonitor = new NullComponentMonitor();
        container = new PicoBuilder().withMonitor(componentMonitor).withCaching().build();
        addComponents(components);
    }
View Full Code Here

      return instanceFor(type) != null;
    }
  }
  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

    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

        }

        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

        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

    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

        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

TOP

Related Classes of org.picocontainer.monitors.NullComponentMonitor

Copyright © 2018 www.massapicom. 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.