org.jboss.portal.wsrp.services
Class AbstractJNDIServiceFactory

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

public abstract class AbstractJNDIServiceFactory
extends AbstractJBossService
implements ServiceFactory

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

Since:
2.4
Version:
$Revision: 8784 $
Author:
Julien Viet, Chris Laprun

Field Summary
protected  boolean failed
          Wheter or not this ServiceFactory has an error condition
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)
           
 boolean isFailed()
           
 void setEnv(java.util.Properties env)
           
 void setPortJNDIMapping(java.util.Properties portJNDIMapping)
           
 
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
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.portal.wsrp.services.ServiceFactory
getMarkupURL, getPortletManagementURL, getRegistrationURL, getServiceDescriptionURL, isAvailable, setMarkupURL, setPortletManagementURL, setRegistrationURL, setServiceDescriptionURL
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

log

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


failed

protected boolean failed
Wheter or not this ServiceFactory has an error condition


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
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
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

isFailed

public boolean isFailed()
Specified by:
isFailed in interface ServiceFactory

getPortJNDIMapping

public java.util.Properties getPortJNDIMapping()

setPortJNDIMapping

public void setPortJNDIMapping(java.util.Properties portJNDIMapping)