org.jboss.deployment
Interface SubDeployerMBean

All Superinterfaces:
Service, ServiceMBean
All Known Subinterfaces:
JARDeployerMBean, SARDeployerMBean, SubDeployerExtMBean, XSLSubDeployerMBean
All Known Implementing Classes:
JARDeployer, ObjectModelFactorySimpleSubDeployerSupport, SARDeployer, SchemaBindingSimpleSubDeployerSupport, SimpleSubDeployerSupport, SubDeployerSupport, XSLSubDeployer

public interface SubDeployerMBean
extends ServiceMBean

MBean interface for SubDeployers

Version:
$Revision: 1.1.6.5 $

Field Summary
 
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
 
Method Summary
 boolean accepts(DeploymentInfo sdi)
          The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.
 void create(DeploymentInfo sdi)
          Set up the components of the deployment that do not refer to other components.
 void destroy(DeploymentInfo sdi)
          The destroy method removes individual components
 int getRelativeOrder()
          Get the relative order of the specified suffixes
 javax.management.ObjectName getServiceName()
          Get the JMX ObjectName of the service that provides the SubDeployer
 String[] getSuffixes()
          Get an array of suffixes of interest to this subdeployer
 void init(DeploymentInfo sdi)
          The init method lets the deployer set a few properties of the DeploymentInfo, such as the watch url.
 void start(DeploymentInfo sdi)
          The start method sets up relationships with other components.
 void stop(DeploymentInfo sdi)
          The stop method removes relationships between components.
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

getServiceName

javax.management.ObjectName getServiceName()
Get the JMX ObjectName of the service that provides the SubDeployer

Returns:
JMX ObjectName of the service

getSuffixes

String[] getSuffixes()
Get an array of suffixes of interest to this subdeployer

Returns:
array of suffix strings

getRelativeOrder

int getRelativeOrder()
Get the relative order of the specified suffixes

Returns:
the relative order of the specified suffixes

accepts

boolean accepts(DeploymentInfo sdi)
The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.

Parameters:
sdi - a DeploymentInfo value
Returns:
a boolean value

init

void init(DeploymentInfo sdi)
          throws DeploymentException
The init method lets the deployer set a few properties of the DeploymentInfo, such as the watch url.

Parameters:
sdi - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs

create

void create(DeploymentInfo sdi)
            throws DeploymentException
Set up the components of the deployment that do not refer to other components.

Parameters:
sdi - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs

start

void start(DeploymentInfo sdi)
           throws DeploymentException
The start method sets up relationships with other components.

Parameters:
sdi - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs

stop

void stop(DeploymentInfo sdi)
          throws DeploymentException
The stop method removes relationships between components.

Parameters:
sdi - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs

destroy

void destroy(DeploymentInfo sdi)
             throws DeploymentException
The destroy method removes individual components

Parameters:
sdi - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.