|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.kernel.config.Configuration
A Configuration represents a collection of runnable services that can be loaded into a Geronimo Kernel and brought online. The primary components in a Configuration are a codebase, represented by a collection of URLs that is used to locate classes, and a collection of GBean instances that define its state.
The persistent attributes of the Configuration are:
Field Summary | |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
Configuration()
Only used to allow declaration as a reference. |
|
Configuration(Collection parents,
ConfigurationData configurationData,
ConfigurationResolver configurationResolver,
ManageableAttributeStore attributeStore)
Creates a configuration. |
Method Summary | |
void |
addGBean(org.apache.geronimo.gbean.GBeanData gbean)
|
org.apache.geronimo.gbean.AbstractName |
addGBean(String name,
org.apache.geronimo.gbean.GBeanData gbean)
|
void |
addToClassPath(String pattern)
|
boolean |
containsGBean(org.apache.geronimo.gbean.AbstractName gbean)
Determines of this configuration constains the specified GBean. |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
org.apache.geronimo.gbean.AbstractName |
findGBean(org.apache.geronimo.gbean.AbstractNameQuery pattern)
|
org.apache.geronimo.gbean.AbstractName |
findGBean(org.apache.geronimo.gbean.ReferencePatterns referencePatterns)
|
org.apache.geronimo.gbean.AbstractName |
findGBean(Set patterns)
|
org.apache.geronimo.gbean.GBeanData |
findGBeanData(org.apache.geronimo.gbean.AbstractNameQuery pattern)
|
org.apache.geronimo.gbean.GBeanData |
findGBeanData(Set patterns)
|
LinkedHashSet |
findGBeanDatas(Set patterns)
|
LinkedHashSet |
findGBeans(org.apache.geronimo.gbean.AbstractNameQuery pattern)
|
LinkedHashSet |
findGBeans(org.apache.geronimo.gbean.ReferencePatterns referencePatterns)
|
LinkedHashSet |
findGBeans(Set patterns)
|
org.apache.geronimo.gbean.AbstractName |
getAbstractName()
|
List |
getChildren()
Gets the nested configurations of this configuration. |
List |
getClassParents()
Gets the parent configurations used for class loading. |
List |
getClassPath()
Gets the relative class path (URIs) of this configuration. |
static org.apache.geronimo.gbean.AbstractName |
getConfigurationAbstractName(Artifact configId)
Converts an Artifact to an AbstractName for a configuration. |
ClassLoader |
getConfigurationClassLoader()
Gets the class loader for this configuration. |
static Artifact |
getConfigurationID(javax.management.ObjectName objectName)
|
ConfigurationResolver |
getConfigurationResolver()
Deprecated. this is only exposed temporarily for configuration manager |
long |
getCreated()
Gets the time at which this configuration was created (or deployed). |
LinkedHashSet |
getDependencies()
Gets the artifact dependencies of this configuration. |
Configuration |
getEnclosingConfiguration()
Gets the enclosing configuration of this one (e.g. |
Environment |
getEnvironment()
Gets the declaration of the environment in which this configuration runs. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
Map |
getGBeans()
Gets an unmodifiable collection of the GBeanDatas for the GBeans in this configuration. |
Artifact |
getId()
Return the unique Id |
ConfigurationModuleType |
getModuleType()
Gets the type of the configuration (WAR, RAR et cetera) |
String |
getObjectName()
Gets the unique name of this configuration within the kernel. |
Set |
getOwnedConfigurations()
Gets the configurations owned by this configuration. |
List |
getServiceParents()
Gets the parent configurations used for service resolution. |
static boolean |
isConfigurationObjectName(javax.management.ObjectName name)
|
void |
removeGBean(org.apache.geronimo.gbean.AbstractName name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public Configuration()
public Configuration(Collection parents, ConfigurationData configurationData, ConfigurationResolver configurationResolver, ManageableAttributeStore attributeStore) throws MissingDependencyException, MalformedURLException, NoSuchConfigException, InvalidConfigException
parents
- parents of this configuation (not ordered)configurationData
- the module type, environment and classpath of the configurationconfigurationResolver
- used to resolve dependecies and pathsMethod Detail |
public static org.apache.geronimo.gbean.AbstractName getConfigurationAbstractName(Artifact configId) throws InvalidConfigException
InvalidConfigException
public static boolean isConfigurationObjectName(javax.management.ObjectName name)
public static Artifact getConfigurationID(javax.management.ObjectName objectName)
public Artifact getId()
public String getObjectName()
public org.apache.geronimo.gbean.AbstractName getAbstractName()
public List getClassParents()
public List getServiceParents()
public LinkedHashSet getDependencies()
public Environment getEnvironment()
public ConfigurationResolver getConfigurationResolver()
public List getClassPath()
public void addToClassPath(String pattern) throws IOException
IOException
public ConfigurationModuleType getModuleType()
public long getCreated()
public ClassLoader getConfigurationClassLoader()
getConfigurationClassLoader
in interface ConfigurationParent
public List getChildren()
public Set getOwnedConfigurations()
public Map getGBeans()
public boolean containsGBean(org.apache.geronimo.gbean.AbstractName gbean)
gbean
- the name of the GBean
public Configuration getEnclosingConfiguration()
public org.apache.geronimo.gbean.AbstractName addGBean(String name, org.apache.geronimo.gbean.GBeanData gbean) throws GBeanAlreadyExistsException
GBeanAlreadyExistsException
public void addGBean(org.apache.geronimo.gbean.GBeanData gbean) throws GBeanAlreadyExistsException
GBeanAlreadyExistsException
public void removeGBean(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.AbstractName findGBean(org.apache.geronimo.gbean.AbstractNameQuery pattern) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanData findGBeanData(org.apache.geronimo.gbean.AbstractNameQuery pattern) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.AbstractName findGBean(org.apache.geronimo.gbean.ReferencePatterns referencePatterns) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.AbstractName findGBean(Set patterns) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanData findGBeanData(Set patterns) throws GBeanNotFoundException
GBeanNotFoundException
public LinkedHashSet findGBeans(org.apache.geronimo.gbean.AbstractNameQuery pattern)
public LinkedHashSet findGBeans(org.apache.geronimo.gbean.ReferencePatterns referencePatterns)
public LinkedHashSet findGBeans(Set patterns)
public LinkedHashSet findGBeanDatas(Set patterns)
public void doStart() throws Exception
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
Exception
public void doStop() throws Exception
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
Exception
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |