Package org.codehaus.plexus
Interface PlexusContainer
-
- All Known Subinterfaces:
MutablePlexusContainer
- All Known Implementing Classes:
DefaultPlexusContainer
public interface PlexusContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addComponent(Object component, String role)
<T> void
addComponent(T component, Class<?> role, String hint)
<T> void
addComponentDescriptor(ComponentDescriptor<T> descriptor)
org.codehaus.plexus.classworlds.realm.ClassRealm
createChildRealm(String id)
List<ComponentDescriptor<?>>
discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
void
dispose()
<T> ComponentDescriptor<T>
getComponentDescriptor(Class<T> type, String role, String hint)
ComponentDescriptor<?>
getComponentDescriptor(String role, String hint)
<T> List<ComponentDescriptor<T>>
getComponentDescriptorList(Class<T> type, String role)
List<ComponentDescriptor<?>>
getComponentDescriptorList(String role)
<T> Map<String,ComponentDescriptor<T>>
getComponentDescriptorMap(Class<T> type, String role)
Map<String,ComponentDescriptor<?>>
getComponentDescriptorMap(String role)
org.codehaus.plexus.classworlds.realm.ClassRealm
getContainerRealm()
Context
getContext()
org.codehaus.plexus.classworlds.realm.ClassRealm
getLookupRealm()
boolean
hasComponent(Class<?> role)
boolean
hasComponent(Class<?> role, String hint)
boolean
hasComponent(Class<?> type, String role, String hint)
boolean
hasComponent(String role)
boolean
hasComponent(String role, String hint)
<T> T
lookup(Class<T> role)
<T> T
lookup(Class<T> role, String hint)
<T> T
lookup(Class<T> type, String role, String hint)
Object
lookup(String role)
Object
lookup(String role, String hint)
<T> List<T>
lookupList(Class<T> role)
List<Object>
lookupList(String role)
<T> Map<String,T>
lookupMap(Class<T> role)
Map<String,Object>
lookupMap(String role)
void
release(Object component)
void
releaseAll(List<?> components)
void
releaseAll(Map<String,?> components)
org.codehaus.plexus.classworlds.realm.ClassRealm
setLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
-
-
-
Method Detail
-
getContext
Context getContext()
-
lookup
Object lookup(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
Object lookup(String role, String hint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
<T> T lookup(Class<T> role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
<T> T lookup(Class<T> role, String hint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
<T> T lookup(Class<T> type, String role, String hint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupList
List<Object> lookupList(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupList
<T> List<T> lookupList(Class<T> role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupMap
Map<String,Object> lookupMap(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupMap
<T> Map<String,T> lookupMap(Class<T> role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
hasComponent
boolean hasComponent(String role)
-
hasComponent
boolean hasComponent(Class<?> role)
-
addComponentDescriptor
<T> void addComponentDescriptor(ComponentDescriptor<T> descriptor) throws CycleDetectedInComponentGraphException
-
getComponentDescriptor
ComponentDescriptor<?> getComponentDescriptor(String role, String hint)
-
getComponentDescriptor
<T> ComponentDescriptor<T> getComponentDescriptor(Class<T> type, String role, String hint)
-
getComponentDescriptorList
List<ComponentDescriptor<?>> getComponentDescriptorList(String role)
-
getComponentDescriptorList
<T> List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> type, String role)
-
getComponentDescriptorMap
Map<String,ComponentDescriptor<?>> getComponentDescriptorMap(String role)
-
getComponentDescriptorMap
<T> Map<String,ComponentDescriptor<T>> getComponentDescriptorMap(Class<T> type, String role)
-
discoverComponents
List<ComponentDescriptor<?>> discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) throws PlexusConfigurationException
- Throws:
PlexusConfigurationException
-
getContainerRealm
org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()
-
setLookupRealm
org.codehaus.plexus.classworlds.realm.ClassRealm setLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
-
getLookupRealm
org.codehaus.plexus.classworlds.realm.ClassRealm getLookupRealm()
-
createChildRealm
org.codehaus.plexus.classworlds.realm.ClassRealm createChildRealm(String id)
-
release
void release(Object component) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
releaseAll
void releaseAll(Map<String,?> components) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
releaseAll
void releaseAll(List<?> components) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
dispose
void dispose()
-
-