|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.kernel.config.SimpleConfigurationManager org.apache.geronimo.kernel.config.KernelConfigurationManager
public class KernelConfigurationManager
The standard non-editable ConfigurationManager implementation. That is, you can save a lost configurations and stuff, but not change the set of GBeans included in a configuration.
EditableConfigurationManager
Field Summary | |
---|---|
protected ManageableAttributeStore |
attributeStore
|
protected ClassLoader |
classLoader
|
protected PersistentConfigurationList |
configurationList
|
static GBeanInfo |
GBEAN_INFO
|
protected Kernel |
kernel
|
Fields inherited from class org.apache.geronimo.kernel.config.SimpleConfigurationManager |
---|
configurationModel, configurations, log, repositories, stores, watchers |
Constructor Summary | |
---|---|
KernelConfigurationManager(Kernel kernel,
Collection stores,
ManageableAttributeStore attributeStore,
PersistentConfigurationList configurationList,
ArtifactManager artifactManager,
ArtifactResolver artifactResolver,
Collection repositories,
Collection watchers,
ClassLoader classLoader)
|
Method Summary | |
---|---|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
static GBeanInfo |
getGBeanInfo()
|
boolean |
isOnline()
this configuration manager never starts configurations. |
protected void |
load(Artifact configurationId)
|
protected Configuration |
load(ConfigurationData configurationData,
LinkedHashSet resolvedParentIds,
Map loadedConfigurations)
|
LifecycleResults |
loadConfiguration(Artifact configurationId)
Load the specified configuration (from a config store) and all configurations it depends on into the kernel. |
protected void |
migrateConfiguration(Artifact oldName,
Artifact newName,
Configuration configuration,
boolean running)
|
void |
setOnline(boolean online)
|
void |
start(Configuration configuration)
|
protected void |
stop(Configuration configuration)
|
protected void |
unload(Configuration configuration)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Kernel kernel
protected final ManageableAttributeStore attributeStore
protected final PersistentConfigurationList configurationList
protected final ClassLoader classLoader
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public KernelConfigurationManager(Kernel kernel, Collection stores, ManageableAttributeStore attributeStore, PersistentConfigurationList configurationList, ArtifactManager artifactManager, ArtifactResolver artifactResolver, Collection repositories, Collection watchers, ClassLoader classLoader)
Method Detail |
---|
public LifecycleResults loadConfiguration(Artifact configurationId) throws NoSuchConfigException, LifecycleException
ConfigurationManager
loadConfiguration
in interface ConfigurationManager
loadConfiguration
in class SimpleConfigurationManager
configurationId
- the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException
- if no configuration with the given id exists in the configuration stores
LifecycleException
- if there is a problem loading the configurationprotected void load(Artifact configurationId) throws NoSuchConfigException
load
in class SimpleConfigurationManager
NoSuchConfigException
protected void migrateConfiguration(Artifact oldName, Artifact newName, Configuration configuration, boolean running) throws NoSuchConfigException
migrateConfiguration
in class SimpleConfigurationManager
NoSuchConfigException
protected Configuration load(ConfigurationData configurationData, LinkedHashSet resolvedParentIds, Map loadedConfigurations) throws InvalidConfigException
load
in class SimpleConfigurationManager
InvalidConfigException
public void start(Configuration configuration) throws InvalidConfigException
start
in class SimpleConfigurationManager
InvalidConfigException
public boolean isOnline()
SimpleConfigurationManager
isOnline
in interface ConfigurationManager
isOnline
in class SimpleConfigurationManager
public void setOnline(boolean online)
setOnline
in interface ConfigurationManager
setOnline
in class SimpleConfigurationManager
protected void stop(Configuration configuration)
stop
in class SimpleConfigurationManager
protected void unload(Configuration configuration)
unload
in class SimpleConfigurationManager
public void doStart()
GBeanLifecycle
doStart
in interface GBeanLifecycle
public void doStop()
GBeanLifecycle
doStop
in interface GBeanLifecycle
public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |