站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

AbstractSOAPServiceFactory - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.wsrp.services
Class AbstractSOAPServiceFactory

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.wsrp.services.AbstractJNDIServiceFactory
                  extended byorg.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.portal.wsrp.services.AbstractJNDIServiceFactory
log, portJNDIMapping
 
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
 
Constructor Summary
AbstractSOAPServiceFactory()
           
 
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.portal.wsrp.services.AbstractJNDIServiceFactory
getEnv, getPortJNDIMapping, setEnv, setPortJNDIMapping
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
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
 

Field Detail

services

private java.util.Map services
Cache the services.

Constructor Detail

AbstractSOAPServiceFactory

public AbstractSOAPServiceFactory()
Method Detail

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 class
service - 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