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

AbstractJNDIServiceFactory - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.wsrp.services
Class AbstractJNDIServiceFactory

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.common.system.AbstractJBossService
              extended byorg.jboss.portal.wsrp.services.AbstractJNDIServiceFactory
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, ServiceFactory, org.jboss.system.ServiceMBean
Direct Known Subclasses:
AbstractSOAPServiceFactory, RMIInvokerServiceFactory

public abstract class AbstractJNDIServiceFactory
extends AbstractJBossService
implements ServiceFactory

A service factory implementation that get the services using JNDI lookups.

Since:
2.4

Field Summary
protected  org.jboss.logging.Logger log
          The logger.
protected  java.util.Properties portJNDIMapping
          A Map recording the mapping between WSRP port type class name and JDNI name of the implementing service.
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
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
AbstractJNDIServiceFactory()
           
 
Method Summary
protected  void createService()
           
 java.util.Properties getEnv()
           
 java.util.Properties getPortJNDIMapping()
           
 java.lang.Object getService(java.lang.Class serviceClass)
           
 void setEnv(java.util.Properties env)
           
 void setPortJNDIMapping(java.util.Properties portJNDIMapping)
           
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
destroyService, 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

log

protected final org.jboss.logging.Logger log
The logger.


portJNDIMapping

protected java.util.Properties portJNDIMapping
A Map recording the mapping between WSRP port type class name and JDNI name of the implementing service.

Constructor Detail

AbstractJNDIServiceFactory

public AbstractJNDIServiceFactory()
Method Detail

createService

protected void createService()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getEnv

public java.util.Properties getEnv()

setEnv

public void setEnv(java.util.Properties env)

getService

public java.lang.Object getService(java.lang.Class serviceClass)
                            throws java.lang.Exception
Specified by:
getService in interface ServiceFactory
Throws:
java.lang.Exception

getPortJNDIMapping

public java.util.Properties getPortJNDIMapping()

setPortJNDIMapping

public void setPortJNDIMapping(java.util.Properties portJNDIMapping)