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

LifecycleInvoker - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.jems.as.system
Class LifecycleInvoker

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.jems.as.system.LifecycleInvoker
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class LifecycleInvoker
extends AbstractJBossService

A jmx method invoker based on the lifecycle.

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private  java.lang.String onCreate
          .
private  java.lang.String onDestroy
          .
private  java.lang.String onStart
          .
private  java.lang.String onStop
          .
private  javax.management.ObjectName target
          .
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, 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
LifecycleInvoker()
           
 
Method Summary
protected  void createService()
           
protected  void destroyService()
           
 java.lang.String getOnCreate()
           
 java.lang.String getOnDestroy()
           
 java.lang.String getOnStart()
           
 java.lang.String getOnStop()
           
 javax.management.ObjectName getTarget()
           
private  void invoke(java.lang.String methodName)
           
 void setOnCreate(java.lang.String onCreate)
           
 void setOnDestroy(java.lang.String onDestroy)
           
 void setOnStart(java.lang.String onStart)
           
 void setOnStop(java.lang.String onStop)
           
 void setTarget(javax.management.ObjectName target)
           
protected  void startService()
           
protected  void stopService()
           
 
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
 
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
 

Field Detail

target

private javax.management.ObjectName target
.


onCreate

private java.lang.String onCreate
.


onStart

private java.lang.String onStart
.


onStop

private java.lang.String onStop
.


onDestroy

private java.lang.String onDestroy
.

Constructor Detail

LifecycleInvoker

public LifecycleInvoker()
Method Detail

getTarget

public javax.management.ObjectName getTarget()

setTarget

public void setTarget(javax.management.ObjectName target)

getOnCreate

public java.lang.String getOnCreate()

setOnCreate

public void setOnCreate(java.lang.String onCreate)

getOnStart

public java.lang.String getOnStart()

setOnStart

public void setOnStart(java.lang.String onStart)

getOnStop

public java.lang.String getOnStop()

setOnStop

public void setOnStop(java.lang.String onStop)

getOnDestroy

public java.lang.String getOnDestroy()

setOnDestroy

public void setOnDestroy(java.lang.String onDestroy)

invoke

private void invoke(java.lang.String methodName)

createService

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

startService

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

stopService

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

destroyService

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