当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AbstractSOAPServiceFactory - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.wsrp.services
Class AbstractSOAPServiceFactory
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.wsrp.services.AbstractJNDIServiceFactory
org.jboss.portal.wsrp.services.AbstractSOAPServiceFactory
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, ServiceFactory, org.jboss.system.ServiceMBean
- Direct Known Subclasses:
- PerEndpointSOAPInvokerServiceFactory, SOAPInvokerServiceFactory
- public abstract class AbstractSOAPServiceFactory
- extends AbstractJNDIServiceFactory
Perform common logic to soap based service factories. This one cache the service retrieved from the JNDI lookup.
- Version:
- $Revision: 5440 $
- Author:
- Julien Viet
Field Summary |
private java.util.Map |
services
Cache the services. |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary |
protected void |
createService()
|
protected void |
destroyService()
|
java.lang.Object |
getService(java.lang.Class serviceClass)
|
protected abstract java.lang.Object |
getStubFromService(java.lang.Class serviceClass,
javax.xml.rpc.Service service)
Retrieve the stub from the service. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
services
private java.util.Map services
- Cache the services.
AbstractSOAPServiceFactory
public AbstractSOAPServiceFactory()
createService
protected void createService()
throws java.lang.Exception
- Overrides:
createService
in class AbstractJNDIServiceFactory
- Throws:
java.lang.Exception
destroyService
protected void destroyService()
throws java.lang.Exception
- Throws:
java.lang.Exception
getStubFromService
protected abstract java.lang.Object getStubFromService(java.lang.Class serviceClass,
javax.xml.rpc.Service service)
throws java.lang.Exception
- Retrieve the stub from the service. The stub is not thread safe and must be customized for each thead.
- Parameters:
serviceClass
- the requested service classservice
- the service implementation obtained from the JNDI lookup
- Returns:
- an implementation based on the provided service
- Throws:
java.lang.Exception
getService
public java.lang.Object getService(java.lang.Class serviceClass)
throws java.lang.Exception
- Specified by:
getService
in interface ServiceFactory
- Overrides:
getService
in class AbstractJNDIServiceFactory
- Throws:
java.lang.Exception