public class Embedder extends Object implements PlexusEmbedder
| Constructor and Description |
|---|
Embedder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextValue(Object key,
Object value) |
PlexusContainer |
getContainer() |
boolean |
hasComponent(String role) |
boolean |
hasComponent(String role,
String id) |
protected void |
initializeContext() |
Object |
lookup(String role) |
Object |
lookup(String role,
String id) |
void |
release(Object service) |
void |
setClassWorld(ClassWorld classWorld) |
void |
setConfiguration(Reader configuration) |
void |
setConfiguration(URL configuration) |
void |
setLoggerManager(LoggerManager loggerManager) |
void |
setProperties(File file) |
void |
setProperties(Properties properties) |
void |
start() |
void |
start(ClassWorld classWorld) |
void |
stop() |
public PlexusContainer getContainer()
getContainer in interface PlexusEmbedderpublic Object lookup(String role) throws ComponentLookupException
lookup in interface PlexusEmbedderComponentLookupExceptionpublic Object lookup(String role, String id) throws ComponentLookupException
lookup in interface PlexusEmbedderComponentLookupExceptionpublic boolean hasComponent(String role)
hasComponent in interface PlexusEmbedderpublic boolean hasComponent(String role, String id)
hasComponent in interface PlexusEmbedderpublic void release(Object service) throws ComponentLifecycleException
release in interface PlexusEmbedderComponentLifecycleExceptionpublic void setClassWorld(ClassWorld classWorld)
setClassWorld in interface PlexusEmbedderpublic void setConfiguration(URL configuration) throws IOException
setConfiguration in interface PlexusEmbedderIOExceptionpublic void setConfiguration(Reader configuration) throws IOException
setConfiguration in interface PlexusEmbedderIOExceptionpublic void addContextValue(Object key, Object value)
addContextValue in interface PlexusEmbedderpublic void setProperties(Properties properties)
setProperties in interface PlexusEmbedderpublic void setProperties(File file)
setProperties in interface PlexusEmbedderpublic void setLoggerManager(LoggerManager loggerManager)
setLoggerManager in interface PlexusEmbedderprotected void initializeContext()
public void start(ClassWorld classWorld)
throws PlexusContainerException
start in interface PlexusEmbedderPlexusContainerExceptionpublic void start()
throws PlexusContainerException
start in interface PlexusEmbedderPlexusContainerExceptionpublic void stop()
stop in interface PlexusEmbedder