|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.connector.IeManagedConnectionFactory
this object typically interacts with an application server for creating ConnectionFactories and ManagedConnections and to match ManagedConnections for connection requests with pooled ManagedConnections.
Field Summary | |
protected PropertyChangeSupport |
changes
|
private IeConnectionRequestInfo |
cxInfo
|
private Log |
log
|
private PrintWriter |
logWriter
|
protected VetoableChangeSupport |
vetos
|
Constructor Summary | |
IeManagedConnectionFactory()
|
Method Summary | |
Object |
createConnectionFactory()
create a default ConnectionFactory for us in a "non managed" environment. |
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
create a ConnectionFactory with a specific ConnectionManager. |
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
create a new managed connection |
boolean |
equals(Object other)
compare this ManagedConnectionFactory to another for equality |
String |
getConnectionImplementation()
get the connection implementation this ManagedConnectionFactory uses when creating ConnectionFactories |
String |
getConnectionProperties()
get the connection implementation this ManagedConnectionFactory uses when creating ConnectionFactories |
String |
getLogLevel()
get the log level |
PrintWriter |
getLogWriter()
get the PrintWriter instance this ManagedConnectionFactory is using |
int |
hashCode()
generate this objects hashCode. |
void |
loadConnectionProperties(InputStream is)
load connection properties from an input stream |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
given a set of ManagedConnections return one that matches the subject and connection request info criteria. |
void |
setConnectionImplementation(String impl)
set the connection implementation this ManagedConnectionFactory is to use when producing ConnectionFactories. |
void |
setConnectionProperties(String props)
set the connection implementation this ManagedConnectionFactory is to use when producing ConnectionFactories. |
void |
setConnectionProperty(String name,
String value)
set a single connection property |
void |
setLogLevel(String level)
set the log level. |
void |
setLogWriter(PrintWriter out)
set the PrintWriter this ManagedConnectionFactory should use to log info |
(package private) void |
setRequestInfo(IeConnectionRequestInfo info)
for use in non-managed scenario to propogate default connection request info back... |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PropertyChangeSupport changes
protected VetoableChangeSupport vetos
private IeConnectionRequestInfo cxInfo
private PrintWriter logWriter
private Log log
Constructor Detail |
public IeManagedConnectionFactory()
Method Detail |
public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cxManager
- a connection manager
javax.resource.ResourceException
- if something bad happenspublic javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
subject
- security credentials supplied in a "container managed sign on" scenario.cxRequestInfo
- connection request info supplied by appication
javax.resource.ResourceException
- if something bad happenspublic boolean equals(Object other)
equals
in interface javax.resource.spi.ManagedConnectionFactory
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- (not really)public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
connectionSet
- set of ManagedConnectionssubject
- security credentials in connection requestcxRequestInfo
- connection request info in connection request
javax.resource.ResourceException
- (not really)public void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
out
- the PrintWriter
javax.resource.ResourceException
- (not really)void setRequestInfo(IeConnectionRequestInfo info)
info
- public void setConnectionImplementation(String impl) throws PropertyVetoException
impl
- the connection implementation
PropertyVetoException
- if someone doesn't like the new valuepublic String getConnectionImplementation()
public void loadConnectionProperties(InputStream is) throws IOException
is
- the property input stream
IOException
public void setConnectionProperty(String name, String value)
name
- the property namevalue
- the property valuepublic void setConnectionProperties(String props) throws PropertyVetoException
PropertyVetoException
- if someone doesn't like the new valuepublic String getConnectionProperties()
public void setLogLevel(String level) throws PropertyVetoException
level
- string representation of an integer
PropertyVetoException
- if someone doesn't like the new valuepublic String getLogLevel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |