|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.management.utils.GenericServiceManager
This class can be used to manage deployment notifications for a subsystem that is configured using DeploymentMBeans. Each subsystem should register each DeploymentMBean class that they are responsible for managing using this class, and make the appropriate "start" and "stop" calls when its subsystem is started and stopped.
Method Summary | |
void |
activateDeployment(DeploymentMBean deployment,
weblogic.management.internal.DeploymentHandlerContext context)
|
void |
deactivateDeployment(DeploymentMBean deployment,
weblogic.management.internal.DeploymentHandlerContext context)
|
static GenericServiceManager |
getManager()
Return the singleton manager. |
void |
prepareDeployment(DeploymentMBean deployment,
weblogic.management.internal.DeploymentHandlerContext context)
Implement the DeploymentHandler interface by delegating to the appropriate GenericManagedService instance. |
GenericManagedService |
register(Class mBeanClass,
Class handlerClass,
boolean handleMigration)
Services should call this method for each type of DeploymentMBean that they handle. |
void |
unprepareDeployment(DeploymentMBean deployment,
weblogic.management.internal.DeploymentHandlerContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void activateDeployment(DeploymentMBean deployment, weblogic.management.internal.DeploymentHandlerContext context) throws DeploymentException
activateDeployment
in interface weblogic.management.internal.DeploymentHandler
DeploymentException
public void deactivateDeployment(DeploymentMBean deployment, weblogic.management.internal.DeploymentHandlerContext context) throws UndeploymentException
deactivateDeployment
in interface weblogic.management.internal.DeploymentHandler
UndeploymentException
public static GenericServiceManager getManager()
public void prepareDeployment(DeploymentMBean deployment, weblogic.management.internal.DeploymentHandlerContext context) throws DeploymentException
prepareDeployment
in interface weblogic.management.internal.DeploymentHandler
DeploymentException
public GenericManagedService register(Class mBeanClass, Class handlerClass, boolean handleMigration)
mBeanClass
- the class of MBean that the handler will handle.
Every time an MBean of this class is deployed, an instance of the
handler in question will be used to handle it. The class in question
must implement DeploymentMBean.handleMigration
- if true, then if a deployment is targeted to
a migratable target, it will be activated when and only when migration
has occurred.
IllegalArgumentException
- if the classes do not
match up to the right interfaces.public void unprepareDeployment(DeploymentMBean deployment, weblogic.management.internal.DeploymentHandlerContext context) throws UndeploymentException
unprepareDeployment
in interface weblogic.management.internal.DeploymentHandler
UndeploymentException
|
Documentation is available at http://e-docs.bea.com/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |