org.objectweb.easybeans.deployer
Class DeployerMBean

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.objectweb.easybeans.deployer.DeployerMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean, IDeployer

public final class DeployerMBean
extends org.apache.commons.modeler.BaseModelMBean
implements IDeployer

Exposed MBean for the Deployer class.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
DeployerMBean()
          Create the mbean.
 
Method Summary
 void deployEar(java.lang.String fileName)
          Deploy an application packaged in a EAR file.
 void deployEjbJar(java.lang.String fileName)
          Deploy an EJB packaged in a JAR file.
 java.lang.String deployFile(java.lang.Integer typeparam, java.lang.Byte[] bfile, java.lang.String filename)
          Deploy a file on the EJB3 container.
private  IDeployer getDeployer()
           
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeployerMBean

public DeployerMBean()
              throws javax.management.MBeanException
Create the mbean.

Throws:
javax.management.MBeanException - if the super constructor fails.
Method Detail

getDeployer

private IDeployer getDeployer()
Returns:
the deployer (managed object)

deployFile

public java.lang.String deployFile(java.lang.Integer typeparam,
                                   java.lang.Byte[] bfile,
                                   java.lang.String filename)
Deploy a file on the EJB3 container.

Specified by:
deployFile in interface IDeployer
Parameters:
typeparam - type of the file (EJB, WAR, EAR, RAR, CAR) (ModuleType of JSR88)
bfile - bytes array of the file
filename - basename of the file to be deployed
Returns:
the path of the deployed file

deployEar

public void deployEar(java.lang.String fileName)
Deploy an application packaged in a EAR file.

Specified by:
deployEar in interface IDeployer
Parameters:
fileName - the name of the file to deploy

deployEjbJar

public void deployEjbJar(java.lang.String fileName)
Deploy an EJB packaged in a JAR file.

Specified by:
deployEjbJar in interface IDeployer
Parameters:
fileName - the name of the file to deploy