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(org.codehaus.classworlds.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(org.codehaus.classworlds.ClassWorld classWorld) |
void |
stop() |
public PlexusContainer getContainer()
getContainer
in interface PlexusEmbedder
public Object lookup(String role) throws ComponentLookupException
lookup
in interface PlexusEmbedder
ComponentLookupException
public Object lookup(String role, String id) throws ComponentLookupException
lookup
in interface PlexusEmbedder
ComponentLookupException
public boolean hasComponent(String role)
hasComponent
in interface PlexusEmbedder
public boolean hasComponent(String role, String id)
hasComponent
in interface PlexusEmbedder
public void release(Object service) throws ComponentLifecycleException
release
in interface PlexusEmbedder
ComponentLifecycleException
public void setClassWorld(org.codehaus.classworlds.ClassWorld classWorld)
setClassWorld
in interface PlexusEmbedder
public void setConfiguration(URL configuration) throws IOException
setConfiguration
in interface PlexusEmbedder
IOException
public void setConfiguration(Reader configuration) throws IOException
setConfiguration
in interface PlexusEmbedder
IOException
public void addContextValue(Object key, Object value)
addContextValue
in interface PlexusEmbedder
public void setProperties(Properties properties)
setProperties
in interface PlexusEmbedder
public void setProperties(File file)
setProperties
in interface PlexusEmbedder
public void setLoggerManager(LoggerManager loggerManager)
setLoggerManager
in interface PlexusEmbedder
protected void initializeContext()
public void start(org.codehaus.classworlds.ClassWorld classWorld) throws PlexusContainerException
start
in interface PlexusEmbedder
PlexusContainerException
public void start() throws PlexusContainerException
start
in interface PlexusEmbedder
PlexusContainerException
public void stop()
stop
in interface PlexusEmbedder
Copyright © 2001-2013 Codehaus. All Rights Reserved.