org.ow2.jonas.ear.internal.mbean
Class Ear

java.lang.Object
  extended by org.ow2.jonas.lib.management.javaee.ManagedObject
      extended by org.ow2.jonas.lib.management.javaee.J2EEManagedObject
          extended by org.ow2.jonas.lib.management.javaee.J2EEDeployedObject
              extended by org.ow2.jonas.ear.internal.mbean.Ear

public class Ear
extends J2EEDeployedObject

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.ow2.jonas.lib.management.javaee.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
logger
 
Constructor Summary
Ear(String objectName, String pName, String pUnpackName, URL earUrl, String deploymentDescriptor, URL[] ejbJars, URL[] wars, URL[] rars, JmxService jmx)
          Construct an Ear structure with the specified files
 
Method Summary
 URL getEarUrl()
          Return the url of this Ear
 URL[] getEjbJars()
          Return the ejb-jar files
 String[] getModules()
          Return the J2EEModules used by this J2EEApplication (jar, war, rar).
 String getName()
          The application name.
 URL[] getRars()
          Return the rar files
 String getUnpackName()
          The name of the working copy of the ear
 URL[] getWars()
          Return the war files
 String[] getWebModules()
           
 void setWebModules()
          Determine the web modules contained in this J2EEApplication
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEDeployedObject
getDeploymentDescriptor, getJonasDeploymentDescriptor, getServer, isJ2EEDeployedObjectType, setDeploymentDescriptor, setJonasDeploymentDescriptor, setServer
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider, setEventProvider, setObjectName, setStateManageable, setStatisticsProvider
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ear

public Ear(String objectName,
           String pName,
           String pUnpackName,
           URL earUrl,
           String deploymentDescriptor,
           URL[] ejbJars,
           URL[] wars,
           URL[] rars,
           JmxService jmx)
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 URL getEarUrl()
Return the url of this Ear

Returns:
the url of this Ear

getEjbJars

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

Returns:
the ejb-jar files

getWars

public URL[] getWars()
Return the war files

Returns:
the war files

getRars

public URL[] getRars()
Return the rar files

Returns:
the rar files

getName

public String getName()
The application name.

Returns:
application name

getUnpackName

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

Returns:
work name

getModules

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

Returns:
A array of OBJECT_NAMEs corresponding to these modules.

getWebModules

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

setWebModules

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



Copyright © 2010 OW2 Consortium. All Rights Reserved.