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 SingletonComponentManagerFactory implements ComponentManagerFactory
8   {
9       public String getId()
10      {
11          return "singleton";
12      }
13  
14      @SuppressWarnings({"RawUseOfParameterizedType"})
15      public ComponentManager<?> createComponentManager( MutablePlexusContainer container,
16                                                      LifecycleHandler lifecycleHandler,
17                                                      ComponentDescriptor componentDescriptor,
18                                                      String role,
19                                                      String roleHint )
20      {
21          return new SingletonComponentManager( container, lifecycleHandler, componentDescriptor, role, roleHint );
22      }
23  }