org.jboss.varia.deployment
Interface ScriptService

All Superinterfaces:
Service

public interface ScriptService
extends Service

Various methods that may be implemented by a bean shell script. Service lifecycle methods such as start and stop, if available, are also called at service deployment and undeployment.

Version:
$Revision: 81038 $
Author:
Sacha Labourey.
See Also:
BeanShellSubDeployer

Method Summary
 String[] dependsOn()
          Returns a list of ObjectNames as strings that this service depends on.
 Class[] getInterfaces()
          Returns any MBean interfaces implemented by this script.
 String objectName()
          Returns the ObjectName of this service.
 void setCtx(ServiceMBeanSupport wrapper)
          Called before create is called.
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

dependsOn

String[] dependsOn()
                   throws Exception
Returns a list of ObjectNames as strings that this service depends on.

Throws:
Exception

objectName

String objectName()
                  throws Exception
Returns the ObjectName of this service.

Throws:
Exception

getInterfaces

Class[] getInterfaces()
                      throws Exception
Returns any MBean interfaces implemented by this script.

Throws:
Exception

setCtx

void setCtx(ServiceMBeanSupport wrapper)
            throws Exception
Called before create is called.

Parameters:
wrapper - ServiceMBeanSupport wrapper that is controlling this service
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.