Package org.apache.cxf.jca.cxf
Class ManagedConnectionFactoryImpl
- java.lang.Object
-
- org.apache.cxf.jca.core.resourceadapter.ResourceBean
-
- org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionFactoryImpl
-
- org.apache.cxf.jca.cxf.ManagedConnectionFactoryImpl
-
- All Implemented Interfaces:
Serializable,javax.resource.spi.ManagedConnectionFactory,CXFManagedConnectionFactory
- Direct Known Subclasses:
AssociatedManagedConnectionFactoryImpl
public class ManagedConnectionFactoryImpl extends AbstractManagedConnectionFactoryImpl implements CXFManagedConnectionFactory
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JCABusFactoryjcaBusFactory-
Fields inherited from class org.apache.cxf.jca.core.resourceadapter.ResourceBean
DEFAULT_MONITOR_POLL_INTERVAL, DEFAULT_VALUE_STRING, EJB_SERVANT_BASE_URL, EJB_SERVICE_PROPERTIES_URL, LOG_LEVEL, MONITOR_EJB_SERVICE_PROPERTIES, MONITOR_POLL_INTERVAL
-
-
Constructor Summary
Constructors Constructor Description ManagedConnectionFactoryImpl()ManagedConnectionFactoryImpl(Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ObjectcreateConnectionFactory()ObjectcreateConnectionFactory(javax.resource.spi.ConnectionManager connMgr)javax.resource.spi.ManagedConnectioncreateManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo connReqInfo)protected ObjectgetBootstrapContext()BusgetBus()StringgetEJBServantBaseURL()IntegergetEJBServicePropertiesPollInterval()StringgetEJBServicePropertiesURL()URLgetEJBServicePropertiesURLInstance()StringgetLogLevel()BooleangetMonitorEJBServiceProperties()protected voidinit(ClassLoader appserverClassLoader)voidsetEJBServantBaseURL(String url)voidsetEJBServicePropertiesPollInterval(Integer pollInterval)voidsetEJBServicePropertiesURL(String name)voidsetLogLevel(String logLevel)voidsetMonitorEJBServiceProperties(Boolean monitor)protected voidvalidateReference(AbstractManagedConnectionImpl conn, Subject subj)-
Methods inherited from class org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionFactoryImpl
getLogWriter, matchManagedConnections, setLogWriter
-
Methods inherited from class org.apache.cxf.jca.core.resourceadapter.ResourceBean
createURL, getPluginProps, getPropsURL, setDisableConsoleLogging, setProperty, validateURLString
-
-
-
-
Field Detail
-
jcaBusFactory
protected JCABusFactory jcaBusFactory
-
-
Constructor Detail
-
ManagedConnectionFactoryImpl
public ManagedConnectionFactoryImpl()
-
ManagedConnectionFactoryImpl
public ManagedConnectionFactoryImpl(Properties props)
-
-
Method Detail
-
setLogLevel
public void setLogLevel(String logLevel)
-
setEJBServicePropertiesURL
public void setEJBServicePropertiesURL(String name)
-
setMonitorEJBServiceProperties
public void setMonitorEJBServiceProperties(Boolean monitor)
-
setEJBServicePropertiesPollInterval
public void setEJBServicePropertiesPollInterval(Integer pollInterval)
-
getLogLevel
public String getLogLevel()
-
getEJBServicePropertiesURL
public String getEJBServicePropertiesURL()
-
getMonitorEJBServiceProperties
public Boolean getMonitorEJBServiceProperties()
-
getEJBServicePropertiesPollInterval
public Integer getEJBServicePropertiesPollInterval()
-
getEJBServicePropertiesURLInstance
public URL getEJBServicePropertiesURLInstance() throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
getEJBServantBaseURL
public String getEJBServantBaseURL() throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
setEJBServantBaseURL
public void setEJBServantBaseURL(String url) throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
validateReference
protected void validateReference(AbstractManagedConnectionImpl conn, Subject subj)
- Specified by:
validateReferencein classAbstractManagedConnectionFactoryImpl
-
createConnectionFactory
public Object createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactoryin interfacejavax.resource.spi.ManagedConnectionFactory- Specified by:
createConnectionFactoryin classAbstractManagedConnectionFactoryImpl- Throws:
javax.resource.ResourceException
-
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager connMgr) throws javax.resource.ResourceException
- Specified by:
createConnectionFactoryin interfacejavax.resource.spi.ManagedConnectionFactory- Specified by:
createConnectionFactoryin classAbstractManagedConnectionFactoryImpl- Throws:
javax.resource.ResourceException
-
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo connReqInfo) throws javax.resource.ResourceException
- Specified by:
createManagedConnectionin interfacejavax.resource.spi.ManagedConnectionFactory- Specified by:
createManagedConnectionin classAbstractManagedConnectionFactoryImpl- Throws:
javax.resource.ResourceException
-
close
public void close() throws javax.resource.spi.ResourceAdapterInternalException- Specified by:
closein classAbstractManagedConnectionFactoryImpl- Throws:
javax.resource.spi.ResourceAdapterInternalException
-
init
protected void init(ClassLoader appserverClassLoader) throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
getBus
public Bus getBus()
-
getBootstrapContext
protected Object getBootstrapContext()
-
-