Class ManagedSessionFactory
- java.lang.Object
-
- org.exoplatform.connectors.jcr.impl.adapter.ManagedSessionFactory
-
- All Implemented Interfaces:
Serializable,javax.resource.spi.ManagedConnectionFactory
public class ManagedSessionFactory extends Object implements javax.resource.spi.ManagedConnectionFactory
- Version:
- $Id$
- Author:
- Nicolas Filotto
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManagedSessionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateConnectionFactory()ObjectcreateConnectionFactory(javax.resource.spi.ConnectionManager cxManager)javax.resource.spi.ManagedConnectioncreateManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)booleanequals(Object obj)PrintWritergetLogWriter()StringgetPortalContainer()StringgetRepository()inthashCode()javax.resource.spi.ManagedConnectionmatchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)voidsetLogWriter(PrintWriter out)voidsetPortalContainer(String portalContainer)voidsetRepository(String repository)
-
-
-
Method Detail
-
createConnectionFactory
public Object createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactoryin interfacejavax.resource.spi.ManagedConnectionFactory- Throws:
javax.resource.ResourceException- See Also:
ManagedConnectionFactory.createConnectionFactory()
-
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
- Specified by:
createConnectionFactoryin interfacejavax.resource.spi.ManagedConnectionFactory- Throws:
javax.resource.ResourceException- See Also:
ManagedConnectionFactory.createConnectionFactory(javax.resource.spi.ConnectionManager)
-
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
- Specified by:
createManagedConnectionin interfacejavax.resource.spi.ManagedConnectionFactory- Throws:
javax.resource.ResourceException
-
getLogWriter
public PrintWriter getLogWriter() throws javax.resource.ResourceException
- Specified by:
getLogWriterin interfacejavax.resource.spi.ManagedConnectionFactory- Throws:
javax.resource.ResourceException- See Also:
ManagedConnectionFactory.getLogWriter()
-
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
- Specified by:
matchManagedConnectionsin interfacejavax.resource.spi.ManagedConnectionFactory- Throws:
javax.resource.ResourceException
-
setLogWriter
public void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
- Specified by:
setLogWriterin interfacejavax.resource.spi.ManagedConnectionFactory- Throws:
javax.resource.ResourceException- See Also:
ManagedConnectionFactory.setLogWriter(java.io.PrintWriter)
-
getPortalContainer
public String getPortalContainer()
- Returns:
- the portalContainer
-
setPortalContainer
public void setPortalContainer(String portalContainer)
- Parameters:
portalContainer- the portalContainer to set
-
getRepository
public String getRepository()
- Returns:
- the repository
-
setRepository
public void setRepository(String repository)
- Parameters:
repository- the repository to set
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejavax.resource.spi.ManagedConnectionFactory- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacejavax.resource.spi.ManagedConnectionFactory- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
-