|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.AbstractComponent
org.ow2.petals.component.framework.se.AbstractServiceEngine
org.ow2.petals.se.jsr181.Jsr181Se
public class Jsr181Se
The JSR-181 service engine.
| Field Summary |
|---|
| Fields inherited from class org.ow2.petals.component.framework.AbstractComponent |
|---|
context |
| Constructor Summary | |
|---|---|
Jsr181Se()
Creates a new instance of Jsr181Se. |
|
| Method Summary | |
|---|---|
org.ow2.petals.component.framework.su.AbstractServiceUnitManager |
createServiceUnitManager()
|
protected void |
doInit()
|
Axis2Deployer |
getAxis2Deployer()
|
org.apache.axis2.context.ConfigurationContext |
getAxisContext()
|
JaxConfigurationHandler |
getJaxConfigurationHandler(java.lang.String endpointName)
|
org.w3c.dom.Document |
getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Gets the WSDL definition from the SU. |
JaxConfigurationHandler |
registerJaxConfigurationHandler(java.lang.String endpointName,
JaxConfigurationHandler jaxConfigurationHandler)
|
JaxConfigurationHandler |
removeJaxConfigurationHandler(java.lang.String endpointName)
|
| Methods inherited from class org.ow2.petals.component.framework.AbstractComponent |
|---|
activateEndpoint, deactivateEndpoint, doShutdown, doStart, doStop, getAsyncManager, getChannel, getComponentConfiguration, getComponentExtensions, getContext, getExtensionMBeanName, getInterceptor, getInterceptors, getLifeCycle, getLogger, getNativeWsdl, getProcessorManager, getResourceBundleName, getServiceUnitManager, init, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, resolveEndpointReference, shutDown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Jsr181Se()
Jsr181Se.
| Method Detail |
|---|
protected void doInit()
throws javax.jbi.JBIException
doInit in class org.ow2.petals.component.framework.AbstractComponentjavax.jbi.JBIExceptionpublic org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
At first glance, it seems obvious this component should generate the WSDL on deployment.
The problem is that Petals has redundant declarations: interfaces, services and end-points are
declared in both the WSDL and in the jbi.xml. With JAX-WS, there are also defined in the class.
Changing the WSDL means changing the jbi.xml. Same thing if we generate the WSDL at deployment time.
Taking this way implies the component should also generate the jbi.xml.
It means the WSDL and jbi.xml generation should be done in
Jsr181SuManager.doDeploy(String, String, org.ow2.petals.component.framework.jbidescriptor.generated.Jbi).
FIXME: Maybe we should consider that other artifacts (than SU) could be deployed on this component.
SU would have to contain everything.
And WAR could be used to generate a SU on the fly.
getServiceDescription in interface javax.jbi.component.ComponentgetServiceDescription in class org.ow2.petals.component.framework.AbstractComponent#getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint)public org.apache.axis2.context.ConfigurationContext getAxisContext()
public Axis2Deployer getAxis2Deployer()
public org.ow2.petals.component.framework.su.AbstractServiceUnitManager createServiceUnitManager()
createServiceUnitManager in class org.ow2.petals.component.framework.se.AbstractServiceEnginepublic JaxConfigurationHandler getJaxConfigurationHandler(java.lang.String endpointName)
endpointName - the end-point name
ConcurrentHashMap.get(java.lang.Object)
public JaxConfigurationHandler registerJaxConfigurationHandler(java.lang.String endpointName,
JaxConfigurationHandler jaxConfigurationHandler)
endpointName - the end-point namejaxConfigurationHandler - the JAX configuration handler to register
ConcurrentHashMap.put(java.lang.Object, java.lang.Object)public JaxConfigurationHandler removeJaxConfigurationHandler(java.lang.String endpointName)
endpointName - the end-point name
ConcurrentHashMap.remove(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||