org.jboss.jca.core.recovery
Class ConfigurableRecoveryPlugin

java.lang.Object
  extended by org.jboss.jca.core.recovery.ConfigurableRecoveryPlugin
All Implemented Interfaces:
org.jboss.jca.core.spi.recovery.RecoveryPlugin

public class ConfigurableRecoveryPlugin
extends Object
implements org.jboss.jca.core.spi.recovery.RecoveryPlugin

Configurable implementation of a recovery plugin.

Author:
Jesper Pedersen

Constructor Summary
ConfigurableRecoveryPlugin()
          Constructor
 
Method Summary
 void close(Object c)
          
 boolean isValid(Object c)
          
 void setCloseMethod(String v)
          Set close method name
 void setEnableClose(boolean v)
          Enable close method call
 void setEnableIsValid(boolean v)
          Enable isValid method call
 void setIsValidOverride(boolean v)
          Override value for isValid method call if not enabled
 void setIsValidValue(int v)
          Set isValid method parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableRecoveryPlugin

public ConfigurableRecoveryPlugin()
Constructor

Method Detail

setEnableIsValid

public void setEnableIsValid(boolean v)
Enable isValid method call

Parameters:
v - The value

setIsValidValue

public void setIsValidValue(int v)
Set isValid method parameter

Parameters:
v - The value

setIsValidOverride

public void setIsValidOverride(boolean v)
Override value for isValid method call if not enabled

Parameters:
v - The value

setEnableClose

public void setEnableClose(boolean v)
Enable close method call

Parameters:
v - The value

setCloseMethod

public void setCloseMethod(String v)
Set close method name

Parameters:
v - The value

isValid

public boolean isValid(Object c)
                throws javax.resource.ResourceException

Specified by:
isValid in interface org.jboss.jca.core.spi.recovery.RecoveryPlugin
Throws:
javax.resource.ResourceException

close

public void close(Object c)
           throws javax.resource.ResourceException

Specified by:
close in interface org.jboss.jca.core.spi.recovery.RecoveryPlugin
Throws:
javax.resource.ResourceException


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)