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)
           
 
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()
           
 java.lang.String getJndiName()
          return the jndi name
 java.util.Properties getProperties()
          return the Adaptator Properties
 void setJcaResource(java.lang.String 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)
Method Detail

getProperties

public java.util.Properties getProperties()
return the Adaptator Properties


getJndiName

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

setJcaResource

public void setJcaResource(java.lang.String jcaResourceObjectName)