|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.config.RegistryConfigurationProcessor
public class RegistryConfigurationProcessor
Builds the registry configuration from xml document. Configuration has to be given as an input stream. Registry configuration consists of details of data sources, handlers and aspects. These information is extracted from the configuration populates the necessary components.
Nested Class Summary | |
---|---|
static class |
RegistryConfigurationProcessor.HandlerDefinitionObject
Object to store a handler definition |
Constructor Summary | |
---|---|
RegistryConfigurationProcessor()
|
Method Summary | |
---|---|
static org.apache.axiom.om.OMElement |
getRegistryConfigAsXML(RegistryContext registryContext)
Obtains the registry configuration as XML element. |
static void |
initializeAspects(org.apache.axiom.om.OMElement configElement,
RegistryContext registryContext)
Creates and initializes an aspect. |
static void |
populateRegistryConfig(InputStream in,
RegistryContext registryContext)
Read XML configuration from the passed InputStream, or from the classpath. |
static Aspect |
updateAspects(org.apache.axiom.om.OMElement configElement)
Updates an aspect based on given configuration. |
static boolean |
updateHandler(org.apache.axiom.om.OMElement configElement,
RegistryContext registryContext,
String lifecyclePhase)
Updates a handler based on given configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryConfigurationProcessor()
Method Detail |
---|
public static void populateRegistryConfig(InputStream in, RegistryContext registryContext) throws RegistryException
in
- an InputStream containing XML data, or null.registryContext
- the RegistryContext to populate
RegistryException
- if there's a problempublic static org.apache.axiom.om.OMElement getRegistryConfigAsXML(RegistryContext registryContext)
registryContext
- the Registry Context used by this registry instance.
public static void initializeAspects(org.apache.axiom.om.OMElement configElement, RegistryContext registryContext) throws RegistryException
configElement
- the aspect configuration element.registryContext
- the Registry Context used by this registry instance.
RegistryException
- if anything goes wrong.public static Aspect updateAspects(org.apache.axiom.om.OMElement configElement) throws RegistryException
configElement
- the aspect configuration element.
RegistryException
- if anything goes wrong.public static boolean updateHandler(org.apache.axiom.om.OMElement configElement, RegistryContext registryContext, String lifecyclePhase) throws RegistryException
configElement
- the handler configuration element.lifecyclePhase
- the lifecycle phase to which this handler belongs. The possible values
are "default", "reporting" and "user".registryContext
- the Registry Context used by this registry instance.
RegistryException
- if anything goes wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |