View Javadoc
1   package org.codehaus.plexus.component.manager;
2   
3   import org.codehaus.plexus.MutablePlexusContainer;
4   import org.codehaus.plexus.component.repository.ComponentDescriptor;
5   import org.codehaus.plexus.lifecycle.LifecycleHandler;
6   
7   public class PerLookupComponentManagerFactory implements ComponentManagerFactory {
8       public String getId() {
9           return "per-lookup";
10      }
11  
12      @SuppressWarnings({"RawUseOfParameterizedType"})
13      public ComponentManager<?> createComponentManager(
14              MutablePlexusContainer container,
15              LifecycleHandler lifecycleHandler,
16              ComponentDescriptor componentDescriptor,
17              String role,
18              String roleHint) {
19          return new PerLookupComponentManager(container, lifecycleHandler, componentDescriptor, role, roleHint);
20      }
21  }