|
|||||||||||
| 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(Kernel kernel,
String objectName,
URI id,
ConfigurationModuleType moduleType,
URI parentID,
ConfigurationParent parent,
List classPath,
byte[] gbeanState,
Collection repositories,
List dependencies)
Constructor that can be used to create an offline Configuration, typically only used publically during the deployment process for initial configuration. |
|
| Method Summary | |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
URL |
getBaseURL()
Return the URL that is used to resolve relative classpath locations |
ClassLoader |
getClassLoader()
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
URI |
getID()
Return the unique ID |
ConfigurationModuleType |
getModuleType()
Gets the type of the configuration (WAR, RAR et cetera) |
URI |
getParentID()
Return the unique ID of this Configuration's parent |
byte[] |
getSavedState()
|
static Map |
loadGBeans(byte[] gbeanState,
ClassLoader cl)
Load GBeans from the supplied byte array using the supplied ClassLoader |
static void |
loadGMBeanState(org.apache.geronimo.gbean.jmx.GBeanMBean gbean,
ObjectInputStream ois)
|
void |
setBaseURL(URL baseURL)
Set the URL that should be used to resolve relative class locations |
static byte[] |
storeGBeans(Map gbeans)
Return a byte array containing the persisted form of the supplied GBeans |
static void |
storeGMBeanState(org.apache.geronimo.gbean.jmx.GBeanMBean gbean,
ObjectOutputStream oos)
|
| 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(Kernel kernel,
String objectName,
URI id,
ConfigurationModuleType moduleType,
URI parentID,
ConfigurationParent parent,
List classPath,
byte[] gbeanState,
Collection repositories,
List dependencies)
id - the unique ID of this ConfigurationmoduleType - the module type identifierparent - the parent Configuration; may be nullclassPath - a ListgbeanState - a byte array contain the Java Serialized form of the GBeans in this Configurationrepositories - a Collectiondependencies - a List| Method Detail |
public void doStart()
throws Exception
doStart in interface org.apache.geronimo.gbean.GBeanLifecycleExceptionpublic void doStop()
doStop in interface org.apache.geronimo.gbean.GBeanLifecyclepublic void doFail()
doFail in interface org.apache.geronimo.gbean.GBeanLifecyclepublic URI getParentID()
public URI getID()
public ConfigurationModuleType getModuleType()
public URL getBaseURL()
public void setBaseURL(URL baseURL)
baseURL - the base URL for the classpathpublic ClassLoader getClassLoader()
public byte[] getSavedState()
public static Map loadGBeans(byte[] gbeanState,
ClassLoader cl)
throws InvalidConfigException
gbeanState - the serialized form of the GBeanscl - the ClassLoader used to locate classes needed during deserialization
InvalidConfigException - if there is a problem deserializing the state
public static void loadGMBeanState(org.apache.geronimo.gbean.jmx.GBeanMBean gbean,
ObjectInputStream ois)
throws IOException,
javax.management.AttributeNotFoundException,
javax.management.ReflectionException,
ClassNotFoundException
IOException
javax.management.AttributeNotFoundException
javax.management.ReflectionException
ClassNotFoundException
public static byte[] storeGBeans(Map gbeans)
throws InvalidConfigException
gbeans - a MapInvalidConfigException - if there is a problem serializing the state
public static void storeGMBeanState(org.apache.geronimo.gbean.jmx.GBeanMBean gbean,
ObjectOutputStream oos)
throws IOException,
javax.management.AttributeNotFoundException,
javax.management.ReflectionException
IOException
javax.management.AttributeNotFoundException
javax.management.ReflectionExceptionpublic static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||