|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.description.AxisDescription org.apache.axis2.engine.AxisConfiguration
public class AxisConfiguration
Class AxisConfiguration
Field Summary | |
---|---|
protected PhasesInfo |
phasesinfo
|
Fields inherited from class org.apache.axis2.description.AxisDescription |
---|
engagedModules, parameterObservers, parent |
Fields inherited from interface org.apache.axis2.description.DescriptionConstants |
---|
CLASSLOADER_KEY, CONTEXTPATH_KEY, EXECUTION_CHAIN_KEY, EXECUTION_FAULT_CHAIN_KEY, EXECUTION_OUT_CHAIN_KEY, IN_FAULTFLOW_KEY, INFLOW_KEY, MESSAGE_RECEIVER_KEY, MODULEREF_KEY, OPERATION_KEY, OUT_FAULTFLOW_KEY, OUTFLOW_KEY, PARAMETER_KEY, PHASES_KEY, SERVICE_CLASS_NAME, STYLE_KEY |
Constructor Summary | |
---|---|
AxisConfiguration()
Constructor AxisConfiguration. |
Method Summary | |
---|---|
void |
addDataLocator(java.lang.String dialect,
AxisDataLocator dataLocator)
For internal used only! To store instance of DataLocator when it is first loaded. |
void |
addDataLocatorClassNames(java.lang.String dialect,
java.lang.String classname)
Allows to define/configure Data Locator for specified dialect at Axis 2 Configuration. |
void |
addDefaultModuleVersion(java.lang.String moduleName,
java.lang.String moduleVersion)
Adds a default module version, which can be done either programmatically or by using axis2.xml. |
void |
addGlobalModuleRef(java.lang.String moduleName)
Add an AxisModule to the list of globally deployed modules. |
void |
addLocalPolicyAssertion(QName name)
|
void |
addMessageBuilder(java.lang.String contentType,
Builder messageBuilder)
Register a messageBuilder implementation against a content type. |
void |
addMessageFormatter(java.lang.String contentType,
MessageFormatter messageFormatter)
Register a messageFormatter implementation against a content type. |
void |
addMessageReceiver(java.lang.String mepURL,
MessageReceiver messageReceiver)
|
void |
addModule(AxisModule module)
Add an available Module to this configuration |
void |
addModuleConfig(ModuleConfiguration moduleConfiguration)
Adds module configuration, if there is a moduleConfig tag in service. |
void |
addObservers(AxisObserver axisObserver)
|
void |
addService(AxisService service)
Method addService. |
void |
addServiceGroup(AxisServiceGroup axisServiceGroup)
|
void |
addTargetResolver(TargetResolver tr)
|
void |
addToAllServicesMap(AxisService axisService)
|
void |
addTransportIn(TransportInDescription transport)
Method addTransportIn. |
void |
addTransportOut(TransportOutDescription transport)
Method addTransportOut. |
void |
cleanup()
|
void |
deployModule(java.lang.String moduleFileName)
|
void |
engageGlobalModules()
Engage all the previously added global modules. |
void |
engageModule(QName moduleref)
Deprecated. Please use the String version instead |
void |
engageModule(java.lang.String moduleref)
Engages the default module version corresponding to given module name , or if the module name contains version number in it then it will engage the correct module. |
void |
engageModule(java.lang.String moduleName,
java.lang.String versionID)
Engages a module using given name and its version ID. |
ClusterManager |
getClusterManager()
|
AxisConfigurator |
getConfigurator()
|
AxisDataLocator |
getDataLocator(java.lang.String dialect)
Return DataLocator instance for specified dialect. |
java.lang.String |
getDataLocatorClassName(java.lang.String dialect)
Return classname of DataLocator configured for specified dialect. |
AxisModule |
getDefaultModule(java.lang.String moduleName)
|
java.lang.String |
getDefaultModuleVersion(java.lang.String moduleName)
|
java.util.Hashtable |
getFaultyModules()
|
java.util.Hashtable |
getFaultyServices()
|
java.util.List |
getGlobalModules()
Deprecated. please use addGlobalModule() |
java.util.ArrayList |
getInFaultFlowPhases()
|
java.util.ArrayList |
getInFlowPhases()
|
java.lang.Object |
getKey()
|
java.util.List |
getLocalPolicyAssertions()
|
Builder |
getMessageBuilder(java.lang.String contentType)
|
MessageFormatter |
getMessageFormatter(java.lang.String contentType)
|
MessageReceiver |
getMessageReceiver(java.lang.String mepURL)
|
AxisModule |
getModule(java.lang.String name)
Method getModule. |
AxisModule |
getModule(java.lang.String moduleName,
java.lang.String moduleVersion)
Return the module having name=moduleName & version=moduleVersion |
java.lang.ClassLoader |
getModuleClassLoader()
The class loader that becomes the parent of all the modules |
ModuleConfiguration |
getModuleConfig(java.lang.String moduleName)
|
java.util.HashMap |
getModules()
|
java.util.List |
getModulesForPolicyNamesapce(java.lang.String namesapce)
|
java.util.ArrayList |
getObserversList()
|
java.util.ArrayList |
getOutFaultFlowPhases()
|
java.util.ArrayList |
getOutFlowPhases()
|
PhasesInfo |
getPhasesInfo()
|
java.net.URL |
getRepository()
|
AxisService |
getService(java.lang.String name)
Method getService. |
java.lang.ClassLoader |
getServiceClassLoader()
|
AxisService |
getServiceForActivation(java.lang.String serviceName)
Service can start and stop, once stopped it cannot be accessed, so we need a way to get the service even if service is not active. |
AxisServiceGroup |
getServiceGroup(java.lang.String serviceNameAndGroupString)
|
java.util.Iterator |
getServiceGroups()
|
java.util.HashMap |
getServices()
|
java.lang.ClassLoader |
getSystemClassLoader()
|
TargetResolver |
getTargetResolverChain()
getTargetResolverChain returns an instance of TargetResolver which iterates over the registered TargetResolvers, calling each one in turn when resolveTarget is called. |
TransportInDescription |
getTransportIn(java.lang.String name)
|
TransportOutDescription |
getTransportOut(java.lang.String name)
|
java.util.HashMap |
getTransportsIn()
|
java.util.HashMap |
getTransportsOut()
|
void |
insertPhase(Deployable d,
int flow)
This method can be used to insert a phase at the runtime for a given location And the relative location can be specified by beforePhase and afterPhase. |
boolean |
isAssertionLocal(QName name)
|
boolean |
isEngaged(AxisModule axisModule)
|
boolean |
isEngaged(QName qname)
Deprecated. Use isEngaged(String) |
boolean |
isEngaged(java.lang.String moduleId)
Check if a given module is engaged at this level. |
boolean |
isStart()
|
void |
notifyObservers(int event_type,
AxisModule moule)
|
void |
notifyObservers(int event_type,
AxisService service)
|
void |
notifyObservers(int event_type,
AxisServiceGroup serviceGroup)
|
void |
onDisengage(AxisModule module)
To dis-engage a module from the system. |
void |
onEngage(AxisModule module,
AxisDescription engager)
|
void |
registerLocalPolicyAssertions(AxisModule axisModule)
|
void |
registerModulePolicySupport(AxisModule axisModule)
|
void |
removeFaultyService(java.lang.String key)
|
void |
removeLocalPolicyAssertion(QName name)
|
void |
removeModule(java.lang.String module)
Deprecated. Use removeModule(String,String) |
void |
removeModule(java.lang.String moduleName,
java.lang.String moduleVersion)
Remove a module with moduleName & moduleVersion |
void |
removeService(java.lang.String name)
Method removeService. |
AxisServiceGroup |
removeServiceGroup(java.lang.String serviceGroupName)
|
void |
setClusterManager(ClusterManager clusterManager)
|
void |
setConfigurator(AxisConfigurator configurator)
|
void |
setGlobalOutPhase(java.util.ArrayList outPhases)
|
void |
setInFaultPhases(java.util.ArrayList list)
|
void |
setInPhasesUptoAndIncludingPostDispatch(java.util.ArrayList inPhasesUptoAndIncludingPostDispatch)
|
void |
setModuleClassLoader(java.lang.ClassLoader classLoader)
|
void |
setOutFaultPhases(java.util.ArrayList list)
|
void |
setPhasesInfo(PhasesInfo phasesInfo)
|
void |
setRepository(java.net.URL axis2Repository)
|
void |
setServiceClassLoader(java.lang.ClassLoader classLoader)
|
void |
setStart(boolean start)
|
void |
setSystemClassLoader(java.lang.ClassLoader classLoader)
|
void |
startService(java.lang.String serviceName)
|
void |
stopService(java.lang.String serviceName)
|
void |
validateSystemPredefinedPhases()
Checks whether the system pre-defined phases for all the flows, have been changed. |
Methods inherited from class org.apache.axis2.description.AxisDescription |
---|
addChild, addChild, addParameter, addParameter, addParameterObserver, applyPolicy, applyPolicy, deserializeParameters, disengageModule, engageModule, engageModule, getAxisConfiguration, getChild, getChildren, getDocumentation, getDocumentationNode, getEngagedModules, getParameter, getParameters, getParameterValue, getParent, getPolicyInclude, getPolicySubject, isParameterLocked, isParameterTrue, removeChild, removeParameter, removeParameterObserver, setDocumentation, setDocumentation, setParent, setPolicyInclude |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PhasesInfo phasesinfo
Constructor Detail |
---|
public AxisConfiguration()
Method Detail |
---|
public void addMessageReceiver(java.lang.String mepURL, MessageReceiver messageReceiver)
public void addMessageBuilder(java.lang.String contentType, Builder messageBuilder)
contentType
- the relevant content-type (i.e. "text/xml")messageBuilder
- a Builder implementationpublic void addMessageFormatter(java.lang.String contentType, MessageFormatter messageFormatter)
contentType
- the relevant content-type (i.e. "text/xml")messageFormatter
- a MessageFormatter implementationpublic void addModule(AxisModule module) throws AxisFault
module
- an AxisModule
AxisFault
- in case of errorpublic void deployModule(java.lang.String moduleFileName) throws DeploymentException
DeploymentException
public void removeModule(java.lang.String module)
removeModule(String,String)
module
- name of module to removepublic void removeModule(java.lang.String moduleName, java.lang.String moduleVersion)
moduleName
- moduleVersion
- public void addModuleConfig(ModuleConfiguration moduleConfiguration)
moduleConfiguration
- a ModuleConfiguration to rememberpublic void addObservers(AxisObserver axisObserver)
public void addService(AxisService service) throws AxisFault
service
-
AxisFault
public void addServiceGroup(AxisServiceGroup axisServiceGroup) throws AxisFault
AxisFault
public void addToAllServicesMap(AxisService axisService) throws AxisFault
AxisFault
public AxisServiceGroup removeServiceGroup(java.lang.String serviceGroupName) throws AxisFault
AxisFault
public void addTransportIn(TransportInDescription transport) throws AxisFault
transport
-
AxisFault
public void addTransportOut(TransportOutDescription transport) throws AxisFault
transport
-
AxisFault
public void engageModule(QName moduleref) throws AxisFault
moduleref
- QName of module to engage
AxisFault
public void engageModule(java.lang.String moduleref) throws AxisFault
moduleref
- name of module to engage
AxisFault
public void engageModule(java.lang.String moduleName, java.lang.String versionID) throws AxisFault
moduleName
- versionID
-
AxisFault
public void onEngage(AxisModule module, AxisDescription engager) throws AxisFault
onEngage
in class AxisDescription
AxisFault
public void onDisengage(AxisModule module) throws AxisFault
onDisengage
in class AxisDescription
module
- module to disengage
AxisFault
public void notifyObservers(int event_type, AxisService service)
public void notifyObservers(int event_type, AxisModule moule)
public void notifyObservers(int event_type, AxisServiceGroup serviceGroup)
public void removeService(java.lang.String name) throws AxisFault
name
-
AxisFault
public void addGlobalModuleRef(java.lang.String moduleName)
moduleName
- name of AxisModule to add to list.public void engageGlobalModules() throws AxisFault
AxisFault
- if an individual engageModule() failspublic java.util.Hashtable getFaultyModules()
public java.util.Hashtable getFaultyServices()
public void removeFaultyService(java.lang.String key)
public java.util.ArrayList getOutFlowPhases()
public java.util.ArrayList getInFaultFlowPhases()
public java.util.ArrayList getInFlowPhases()
public MessageReceiver getMessageReceiver(java.lang.String mepURL)
public Builder getMessageBuilder(java.lang.String contentType)
contentType
-
public MessageFormatter getMessageFormatter(java.lang.String contentType)
contentType
-
public AxisModule getModule(java.lang.String name)
name
-
public AxisModule getModule(java.lang.String moduleName, java.lang.String moduleVersion)
moduleName
- The module namemoduleVersion
- The version of the module
public java.lang.ClassLoader getModuleClassLoader()
public ModuleConfiguration getModuleConfig(java.lang.String moduleName)
public java.util.HashMap getModules()
public java.util.List getGlobalModules()
public java.util.ArrayList getOutFaultFlowPhases()
public PhasesInfo getPhasesInfo()
public java.net.URL getRepository()
public AxisService getService(java.lang.String name) throws AxisFault
name
-
AxisFault
public AxisService getServiceForActivation(java.lang.String serviceName)
public java.lang.ClassLoader getServiceClassLoader()
public AxisServiceGroup getServiceGroup(java.lang.String serviceNameAndGroupString)
public java.util.Iterator getServiceGroups()
public java.util.HashMap getServices()
public java.lang.ClassLoader getSystemClassLoader()
public TransportInDescription getTransportIn(java.lang.String name)
public TransportOutDescription getTransportOut(java.lang.String name)
public java.util.HashMap getTransportsIn()
public java.util.HashMap getTransportsOut()
public boolean isEngaged(QName qname)
isEngaged(String)
qname
- public boolean isEngaged(java.lang.String moduleId)
AxisDescription
isEngaged
in class AxisDescription
moduleId
- module to investigate.
public boolean isEngaged(AxisModule axisModule)
isEngaged
in class AxisDescription
public void setGlobalOutPhase(java.util.ArrayList outPhases)
public void setInFaultPhases(java.util.ArrayList list)
list
- public void setInPhasesUptoAndIncludingPostDispatch(java.util.ArrayList inPhasesUptoAndIncludingPostDispatch)
public void setModuleClassLoader(java.lang.ClassLoader classLoader)
public void setOutFaultPhases(java.util.ArrayList list)
list
- public void setPhasesInfo(PhasesInfo phasesInfo)
public void setRepository(java.net.URL axis2Repository)
public void setServiceClassLoader(java.lang.ClassLoader classLoader)
public void setSystemClassLoader(java.lang.ClassLoader classLoader)
public void addDefaultModuleVersion(java.lang.String moduleName, java.lang.String moduleVersion)
moduleName
- moduleVersion
- public java.lang.String getDefaultModuleVersion(java.lang.String moduleName)
public AxisModule getDefaultModule(java.lang.String moduleName)
public ClusterManager getClusterManager()
public void setClusterManager(ClusterManager clusterManager)
public java.lang.Object getKey()
getKey
in class AxisDescription
public void stopService(java.lang.String serviceName) throws AxisFault
AxisFault
public void startService(java.lang.String serviceName) throws AxisFault
AxisFault
public java.util.List getModulesForPolicyNamesapce(java.lang.String namesapce)
public void registerModulePolicySupport(AxisModule axisModule)
public void registerLocalPolicyAssertions(AxisModule axisModule)
public java.util.ArrayList getObserversList()
public boolean isStart()
public void setStart(boolean start)
public TargetResolver getTargetResolverChain()
public void addTargetResolver(TargetResolver tr)
public void addLocalPolicyAssertion(QName name)
public java.util.List getLocalPolicyAssertions()
public void removeLocalPolicyAssertion(QName name)
public boolean isAssertionLocal(QName name)
public void addDataLocatorClassNames(java.lang.String dialect, java.lang.String classname)
dialect-
- an absolute URI represents the format and version of dataclassname
- - class name of the Data Locator configured to support retrieval
for the specified dialect.public void addDataLocator(java.lang.String dialect, AxisDataLocator dataLocator)
dialect-
- an absolute URI represents the format and version of datadataLocator
- - specified an DataLocator instance to support retrieval
of the specified dialect.public AxisDataLocator getDataLocator(java.lang.String dialect)
public java.lang.String getDataLocatorClassName(java.lang.String dialect)
public void validateSystemPredefinedPhases() throws DeploymentException
DeploymentException
public AxisConfigurator getConfigurator()
public void setConfigurator(AxisConfigurator configurator)
public void cleanup()
public void insertPhase(Deployable d, int flow) throws AxisFault
d
- the Deployable representing the Phase to deployflow
- the type of the flow
AxisFault
- : If something went wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |