public final class

DefaultPlexusContainer

extends Object
implements MutablePlexusContainer
java.lang.Object
   ↳ org.codehaus.plexus.DefaultPlexusContainer

Class Overview

PlexusContainer shim that delegates to a Plexus-aware Guice Injector.

Summary

Public Constructors
DefaultPlexusContainer()
DefaultPlexusContainer(ContainerConfiguration configuration)
DefaultPlexusContainer(ContainerConfiguration configuration, Module... customModules)
Public Methods
<T> void addComponent(T component, Class<?> role, String hint)
void addComponent(Object component, String role)
<T> void addComponentDescriptor(ComponentDescriptor<T> descriptor)
void addPlexusInjector(List<? extends PlexusBeanModule> beanModules, Module... customModules)
ClassRealm createChildRealm(String id)
List<ComponentDescriptor<?>> discoverComponents(ClassRealm realm)
List<ComponentDescriptor<?>> discoverComponents(ClassRealm realm, Module... customModules)
void dispose()
ClassWorld getClassWorld()
ComponentDescriptor<?> getComponentDescriptor(String role, String hint)
<T> ComponentDescriptor<T> getComponentDescriptor(Class<T> type, String role, String hint)
List getComponentDescriptorList(String role)
<T> List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> type, String role)
<T> Map<StringComponentDescriptor<T>> getComponentDescriptorMap(Class<T> type, String role)
Map getComponentDescriptorMap(String role)
ClassRealm getContainerRealm()
Context getContext()
synchronized Logger getLogger()
synchronized LoggerManager getLoggerManager()
ClassRealm getLookupRealm()
boolean hasComponent(String role, String hint)
boolean hasComponent(Class role)
boolean hasComponent(String role)
boolean hasComponent(Class role, String hint)
boolean hasComponent(Class type, String role, String hint)
Object lookup(String role, String hint)
Object lookup(String role)
<T> T lookup(Class<T> type, String role, String hint)
<T> T lookup(Class<T> role)
<T> T lookup(Class<T> role, String hint)
<T> List<T> lookupList(Class<T> role)
List<Object> lookupList(String role)
Map<StringObject> lookupMap(String role)
<T> Map<String, T> lookupMap(Class<T> role)
void release(Object component)
void releaseAll(List<?> components)
void releaseAll(Map<String, ?> components)
synchronized void setLoggerManager(LoggerManager loggerManager)
ClassRealm setLookupRealm(ClassRealm realm)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.codehaus.plexus.MutablePlexusContainer
From interface org.codehaus.plexus.PlexusContainer

Public Constructors

public DefaultPlexusContainer ()

public DefaultPlexusContainer (ContainerConfiguration configuration)

public DefaultPlexusContainer (ContainerConfiguration configuration, Module... customModules)

Public Methods

public void addComponent (T component, Class<?> role, String hint)

public void addComponent (Object component, String role)

public void addComponentDescriptor (ComponentDescriptor<T> descriptor)

public void addPlexusInjector (List<? extends PlexusBeanModule> beanModules, Module... customModules)

public ClassRealm createChildRealm (String id)

public List<ComponentDescriptor<?>> discoverComponents (ClassRealm realm)

public List<ComponentDescriptor<?>> discoverComponents (ClassRealm realm, Module... customModules)

public void dispose ()

public ClassWorld getClassWorld ()

public ComponentDescriptor<?> getComponentDescriptor (String role, String hint)

public ComponentDescriptor<T> getComponentDescriptor (Class<T> type, String role, String hint)

public List getComponentDescriptorList (String role)

public List<ComponentDescriptor<T>> getComponentDescriptorList (Class<T> type, String role)

public Map<StringComponentDescriptor<T>> getComponentDescriptorMap (Class<T> type, String role)

public Map getComponentDescriptorMap (String role)

public ClassRealm getContainerRealm ()

public Context getContext ()

public synchronized Logger getLogger ()

public synchronized LoggerManager getLoggerManager ()

public ClassRealm getLookupRealm ()

public boolean hasComponent (String role, String hint)

public boolean hasComponent (Class role)

public boolean hasComponent (String role)

public boolean hasComponent (Class role, String hint)

public boolean hasComponent (Class type, String role, String hint)

public Object lookup (String role, String hint)

public Object lookup (String role)

public T lookup (Class<T> type, String role, String hint)

public T lookup (Class<T> role)

public T lookup (Class<T> role, String hint)

public List<T> lookupList (Class<T> role)

public List<Object> lookupList (String role)

public Map<StringObject> lookupMap (String role)

public Map<String, T> lookupMap (Class<T> role)

public void release (Object component)

public void releaseAll (List<?> components)

public void releaseAll (Map<String, ?> components)

public synchronized void setLoggerManager (LoggerManager loggerManager)

public ClassRealm setLookupRealm (ClassRealm realm)