com.caucho.jca.ra
Class ResourceArchive

java.lang.Object
  extended by com.caucho.jca.ra.ResourceArchive
All Implemented Interfaces:
EnvironmentBean

public class ResourceArchive
extends java.lang.Object
implements EnvironmentBean

A resource archive (rar)


Method Summary
 AdminObjectConfig getAdminObject(java.lang.String type)
          Returns the managed object definition.
 java.lang.ClassLoader getClassLoader()
          Returns the class loader.
 ConnectionDefinition getConnectionDefinition(java.lang.String type)
          Returns the matching connection factory class.
 java.lang.String getDisplayName()
          Returns the name.
 MessageListenerConfig getMessageListener(java.lang.String type)
          Returns the activation spec.
 ResourceAdapterConfig getResourceAdapter()
          Returns the resource adapter class.
 java.lang.Class getResourceAdapterClass()
          Returns the resource adapter class.
 Path getRootDirectory()
          Sets the root directory.
 java.lang.String getTransactionSupport()
          Returns the transaction support.
 void init()
          Configures the resource.
 void setRarPath(Path rarPath)
          Sets the path to the .ear file
 void setRootDirectory(Path rootDir)
          Sets the root directory.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setRootDirectory

public void setRootDirectory(Path rootDir)
Sets the root directory.


getRootDirectory

public Path getRootDirectory()
Sets the root directory.


getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the class loader.

Specified by:
getClassLoader in interface EnvironmentBean

setRarPath

public void setRarPath(Path rarPath)
Sets the path to the .ear file


getDisplayName

public java.lang.String getDisplayName()
Returns the name.


getResourceAdapter

public ResourceAdapterConfig getResourceAdapter()
Returns the resource adapter class.


getResourceAdapterClass

public java.lang.Class getResourceAdapterClass()
Returns the resource adapter class.


getTransactionSupport

public java.lang.String getTransactionSupport()
Returns the transaction support.


getConnectionDefinition

public ConnectionDefinition getConnectionDefinition(java.lang.String type)
Returns the matching connection factory class.


getMessageListener

public MessageListenerConfig getMessageListener(java.lang.String type)
Returns the activation spec.


getAdminObject

public AdminObjectConfig getAdminObject(java.lang.String type)
Returns the managed object definition.


init

@PostConstruct
public void init()
          throws ConfigException
Configures the resource.

Throws:
ConfigException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object