org.objectweb.jonas.ear
Class Ear

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.ReconfigDispatcher
          extended by org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended by org.objectweb.jonas.management.j2eemanagement.J2EEDeployedObject
                  extended by org.objectweb.jonas.ear.Ear
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, EarMBean, ReconfigDispatcherMBean

public class Ear
extends J2EEDeployedObject
implements EarMBean

Class representing an Ear structure which is composed of :

Author:
Florent Benoit, Michel-Ange Anton (JSR77: J2EEApplication), Adriana Danes

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
Ear(java.lang.String objectName, java.lang.String pName, java.lang.String pUnpackName, java.net.URL earUrl, java.lang.String deploymentDescriptor, java.net.URL[] ejbJars, java.net.URL[] wars, java.net.URL[] rars)
          Construct an Ear structure with the specified files
 
Method Summary
 java.net.URL getEarUrl()
          Return the url of this Ear
 java.net.URL[] getEjbJars()
          Return the ejb-jar files
 java.lang.String[] getModules()
          Return the J2EEModules used by this J2EEApplication (jar, war, rar).
 java.lang.String getName()
          The application name.
 java.net.URL[] getRars()
          Return the rar files
 java.lang.String getUnpackName()
          The name of the working copy of the ear
 java.net.URL[] getWars()
          Return the war files
 java.lang.String[] getWebModules()
           
 void setWebModules()
          Determine the web modules contained in this J2EEApplication
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEDeployedObject
getDeploymentDescriptor, getJonasDeploymentDescriptor, getServer, setDeploymentDescriptor, setJonasDeploymentDescriptor
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.ear.EarMBean
getDeploymentDescriptor
 

Constructor Detail

Ear

public Ear(java.lang.String objectName,
           java.lang.String pName,
           java.lang.String pUnpackName,
           java.net.URL earUrl,
           java.lang.String deploymentDescriptor,
           java.net.URL[] ejbJars,
           java.net.URL[] wars,
           java.net.URL[] rars)
Construct an Ear structure with the specified files

Parameters:
objectName - The object name of the deployed object
pName - name of the application
pUnpackName - name of the working copy of the ear
earUrl - the url of this ear
deploymentDescriptor - the deployment descriptor of the file
ejbJars - the URLs of ejb-jar files
wars - the URLs of the war files
rars - the URLs of the rar files
Method Detail

getEarUrl

public java.net.URL getEarUrl()
Return the url of this Ear

Specified by:
getEarUrl in interface EarMBean
Returns:
the url of this Ear

getEjbJars

public java.net.URL[] getEjbJars()
Return the ejb-jar files

Specified by:
getEjbJars in interface EarMBean
Returns:
the ejb-jar files

getWars

public java.net.URL[] getWars()
Return the war files

Specified by:
getWars in interface EarMBean
Returns:
the war files

getRars

public java.net.URL[] getRars()
Return the rar files

Specified by:
getRars in interface EarMBean
Returns:
the rar files

getName

public java.lang.String getName()
The application name.

Returns:
application name

getUnpackName

public java.lang.String getUnpackName()
The name of the working copy of the ear

Returns:
work name

getModules

public java.lang.String[] getModules()
Return the J2EEModules used by this J2EEApplication (jar, war, rar).

Returns:
A array of OBJECT_NAMEs corresponding to these modules.

getWebModules

public java.lang.String[] getWebModules()
Returns:
Returns the webModules.

setWebModules

public void setWebModules()
Determine the web modules contained in this J2EEApplication