public class RegistryConfigurationProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistryConfigurationProcessor.HandlerDefinitionObject
Object to store a handler definition
|
| Constructor and Description |
|---|
RegistryConfigurationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void populateRegistryConfig(InputStream in, RegistryContext registryContext) throws RegistryException
in - an InputStream containing XML data, or null.registryContext - the RegistryContext to populateRegistryException - 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.Copyright © 2016 WSO2 Inc. All Rights Reserved.