|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionManagerFactory
Interface for a service that creates ConnectionManager implementations on demand. This is used to interface custom ConnectionManagers with OpenEJB. The exact method of identifying and loading ConnectionManagerFactory instances depends on the Assembler implementation you're using.
Method Summary | |
---|---|
OpenEJBConnectionManager |
createConnectionManager(java.lang.String name,
ConnectionManagerConfig config,
javax.resource.spi.ManagedConnectionFactory factory)
Create a ConnectionManager to use for the specified ManagedConnectionFactory. |
void |
setLogWriter(java.io.PrintWriter logger)
Provides logging capabilities, which should be passed on to ConnectionManager instances created by this factory. |
void |
setProperties(java.util.Properties props)
Configures the factory itself. |
Method Detail |
---|
void setLogWriter(java.io.PrintWriter logger)
Note: This method will go away once Logging is made a primary service of OpenEJB.
void setProperties(java.util.Properties props)
OpenEJBConnectionManager createConnectionManager(java.lang.String name, ConnectionManagerConfig config, javax.resource.spi.ManagedConnectionFactory factory) throws OpenEJBException
name
- The deployment ID of the connector, which may be used
for logging, etc.config
- configurationfactory
- The ManagedConnectionFactory to configure a
ConnectionManager for.
OpenEJBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |