|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.jca.JCAManagedConnectionFactory
public final class JCAManagedConnectionFactory
Implements the JCA ManagedConnectionFactory contract.
Constructor Summary | |
---|---|
JCAManagedConnectionFactory()
|
Method Summary | |
---|---|
Object |
createConnectionFactory()
Creates a Connection Factory instance. |
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cm)
Creates a Connection Factory instance. |
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Creates a new physical connection to the underlying EIS resource manager. |
boolean |
equals(Object o)
Return true if equals. |
protected void |
finalize()
Shutdown the repository. |
Boolean |
getBindSessionToTransaction()
|
String |
getConfigFile()
Return the repository configuration file. |
String |
getHomeDir()
Return the repository home directory. |
PrintWriter |
getLogWriter()
Get the log writer. |
RepositoryImpl |
getRepository()
Return the repository. |
int |
hashCode()
Return the hash code. |
void |
log(String message)
Log a message. |
void |
log(String message,
Throwable exception)
Log a message. |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set set,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Returns a matched connection from the candidate set of connections. |
void |
setBindSessionToTransaction(Boolean bindSessionToTransaction)
|
void |
setConfigFile(String configFile)
Set the repository configuration file. |
void |
setHomeDir(String homeDir)
Set the repository home directory. |
void |
setLogWriter(PrintWriter logWriter)
Set the log writer. |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCAManagedConnectionFactory()
Method Detail |
---|
public String getHomeDir()
public void setHomeDir(String homeDir)
public String getConfigFile()
public void setConfigFile(String configFile)
public PrintWriter getLogWriter()
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
public void setLogWriter(PrintWriter logWriter) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
cri
will be null
. In order to be interoperable, we return an
anonymous connection, whose XA resource is recoverable-only.
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(Set set, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public RepositoryImpl getRepository()
public void log(String message)
public void log(String message, Throwable exception)
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
in class Object
public boolean equals(Object o)
equals
in interface javax.resource.spi.ManagedConnectionFactory
equals
in class Object
protected void finalize()
finalize
in class Object
public Boolean getBindSessionToTransaction()
public void setBindSessionToTransaction(Boolean bindSessionToTransaction)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |