org.objectweb.jonas.resource
Class ResourceAdapter

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended byorg.objectweb.jonas.resource.ResourceAdapter
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean

public class ResourceAdapter
extends J2EEManagedObject

MBean class for ResourceAdapter management

Author:
Michel Bruno and Guillaume Riviere

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

Constructor Detail

ResourceAdapter

public ResourceAdapter(java.lang.String objectName,
                       java.util.Properties prop,
                       java.lang.String jndiName,
                       java.lang.String filename,
                       boolean inEarCase,
                       java.net.URL earURL,
                       java.lang.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 java.util.Properties getProperties()
return the Adaptor Properties

Returns:
Properties adaptor properties

getJndiName

public java.lang.String getJndiName()
return the jndi name

Returns:
String jndi name

getFileName

public java.lang.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 java.net.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 java.lang.String getJcaResource()
return the jcaResourceObjectName

Returns:
String jcaResourceObjectName

getSpecVersion

public java.lang.String getSpecVersion()
return the specVersion

Returns:
String specVersion

setJcaResource

public void setJcaResource(java.lang.String jcaResourceObjectName)
set the jcaResourceObjectName

Parameters:
jcaResourceObjectName - to set