Coverage Report - org.codehaus.plexus.component.manager.SingletonComponentManagerFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
SingletonComponentManagerFactory
100 %
3/3
N/A
1
 
 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  61
 public class SingletonComponentManagerFactory implements ComponentManagerFactory
 8  
 {
 9  
     public String getId()
 10  
     {
 11  61
         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  194
         return new SingletonComponentManager( container, lifecycleHandler, componentDescriptor, role, roleHint );
 22  
     }
 23  
 }