org.ow2.jonas.resource.internal.mbean
Class ResourceAdapter

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.resource.internal.mbean.ResourceAdapter

public class ResourceAdapter
extends J2EEManagedObject

MBean class for ResourceAdapter management

Author:
Michel Bruno and Guillaume Riviere

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
ResourceAdapter(String objectName, Properties prop, String jndiName, String filename, boolean inEarCase, URL earURL, String specVersion)
          Constructor
 
Method Summary
 URL getEarURL()
          Accessor the URL of the Ear if the resource adapter is in Ear.
 String getFileName()
          Accessor the filename of the resource adapter.
 boolean getInEarCase()
          Accessor the flag indicating if the resource adapter is in Ear.
 String getJcaResource()
          return the jcaResourceObjectName
 String getJndiName()
          return the jndi name
 Properties getProperties()
          return the Adaptor Properties
 String getResourceAdapterClassname()
           
 String getSpecVersion()
          return the specVersion
 void setJcaResource(String jcaResourceObjectName)
          set the jcaResourceObjectName
 void setResourceAdapterClassname(String resourceAdapterClassname)
           
 
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

ResourceAdapter

public ResourceAdapter(String objectName,
                       Properties prop,
                       String jndiName,
                       String filename,
                       boolean inEarCase,
                       URL earURL,
                       String specVersion)
Constructor

Parameters:
objectName - String of J2EE Managed Object
prop - Properties of RAR
jndiName - String of RAR
filename - String of RAR filename
inEarCase - boolean if in an EAR file
earURL - URL of EAR file
specVersion - String of spec version
Method Detail

getProperties

public Properties getProperties()
return the Adaptor Properties

Returns:
Properties adaptor properties

getJndiName

public String getJndiName()
return the jndi name

Returns:
String jndi name

getFileName

public String getFileName()
Accessor the filename of the resource adapter.

Returns:
The filename

getInEarCase

public boolean getInEarCase()
Accessor the flag indicating if the resource adapter is in Ear.

Returns:
Flag if this resource adapter is in Ear

getEarURL

public URL getEarURL()
Accessor the URL of the Ear if the resource adapter is in Ear.

Returns:
The URL of the Ear or null

getJcaResource

public String getJcaResource()
return the jcaResourceObjectName

Returns:
String jcaResourceObjectName

getSpecVersion

public String getSpecVersion()
return the specVersion

Returns:
String specVersion

setJcaResource

public void setJcaResource(String jcaResourceObjectName)
set the jcaResourceObjectName

Parameters:
jcaResourceObjectName - to set

getResourceAdapterClassname

public String getResourceAdapterClassname()
Returns:
Returns the RA classname.

setResourceAdapterClassname

public void setResourceAdapterClassname(String resourceAdapterClassname)
Parameters:
resourceAdapterClassname - the ra classname.


Copyright © 2010 OW2 Consortium. All Rights Reserved.