|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
uninstall(Artifact configurationId)
|
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 ConfigurationManagerloadConfiguration in class SimpleConfigurationManagerconfigurationId - 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 configuration
protected void load(Artifact configurationId)
throws NoSuchConfigException
load in class SimpleConfigurationManagerNoSuchConfigException
protected void migrateConfiguration(Artifact oldName,
Artifact newName,
Configuration configuration,
boolean running)
throws NoSuchConfigException
migrateConfiguration in class SimpleConfigurationManagerNoSuchConfigException
protected Configuration load(ConfigurationData configurationData,
LinkedHashSet resolvedParentIds,
Map loadedConfigurations)
throws InvalidConfigException
load in class SimpleConfigurationManagerInvalidConfigException
public void start(Configuration configuration)
throws InvalidConfigException
start in class SimpleConfigurationManagerInvalidConfigExceptionpublic boolean isOnline()
SimpleConfigurationManager
isOnline in interface ConfigurationManagerisOnline in class SimpleConfigurationManagerpublic void setOnline(boolean online)
setOnline in interface ConfigurationManagersetOnline in class SimpleConfigurationManagerprotected void stop(Configuration configuration)
stop in class SimpleConfigurationManagerprotected void unload(Configuration configuration)
unload in class SimpleConfigurationManagerprotected void uninstall(Artifact configurationId)
uninstall in class SimpleConfigurationManagerpublic void doStart()
GBeanLifecycle
doStart in interface GBeanLifecyclepublic void doStop()
GBeanLifecycle
doStop in interface GBeanLifecyclepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecyclepublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||