Class ManagedSessionImpl
- java.lang.Object
-
- org.exoplatform.connectors.jcr.impl.adapter.ManagedSessionImpl
-
- All Implemented Interfaces:
javax.resource.spi.ManagedConnection
public class ManagedSessionImpl extends Object implements javax.resource.spi.ManagedConnection
The implementation of aManagedConnectionfor eXo JCR.- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)voidassociateConnection(Object connection)voidcleanup()voiddestroy()ObjectgetConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)javax.resource.spi.LocalTransactiongetLocalTransaction()PrintWritergetLogWriter()javax.resource.spi.ManagedConnectionMetaDatagetMetaData()XAResourcegetXAResource()voidremoveConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)voidsetLogWriter(PrintWriter out)
-
-
-
Method Detail
-
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacejavax.resource.spi.ManagedConnection- See Also:
ManagedConnection.addConnectionEventListener(javax.resource.spi.ConnectionEventListener)
-
associateConnection
public void associateConnection(Object connection) throws javax.resource.ResourceException
- Specified by:
associateConnectionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.associateConnection(java.lang.Object)
-
cleanup
public void cleanup() throws javax.resource.ResourceException- Specified by:
cleanupin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.cleanup()
-
destroy
public void destroy() throws javax.resource.ResourceException- Specified by:
destroyin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.destroy()
-
getConnection
public Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
- Specified by:
getConnectionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException- Specified by:
getLocalTransactionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.getLocalTransaction()
-
getLogWriter
public PrintWriter getLogWriter() throws javax.resource.ResourceException
- Specified by:
getLogWriterin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.getLogWriter()
-
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException- Specified by:
getMetaDatain interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.getMetaData()
-
getXAResource
public XAResource getXAResource() throws javax.resource.ResourceException
- Specified by:
getXAResourcein interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.getXAResource()
-
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacejavax.resource.spi.ManagedConnection- See Also:
ManagedConnection.removeConnectionEventListener(javax.resource.spi.ConnectionEventListener)
-
setLogWriter
public void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
- Specified by:
setLogWriterin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException- See Also:
ManagedConnection.setLogWriter(java.io.PrintWriter)
-
-