Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

oracle.sdp.messaging.driver
Class DriverManagedConnectionFactoryBase

java.lang.Object
  extended by oracle.sdp.messaging.driver.DriverManagedConnectionFactoryBase
All Implemented Interfaces:
Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

public abstract class DriverManagedConnectionFactoryBase
extends java.lang.Object
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

Base implementation of the DriverManagedConnectionFactory interface. A driver should extend this class to create a driver specific XXXManagedConnetionFactory.

For example:

 public class XXXManagedConnetionFactory extends DriverManagedConnetionFactoryBase {
    ...
    
    public ManagedConnection createManagedConnection(Subject sub, ConnectionRequestInfo info) throws ResourceException {
      ...
    }
    
 }
 

Since:
11.0.0
See Also:
Serialized Form

Constructor Summary
DriverManagedConnectionFactoryBase()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
           
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cm)
           
 boolean equals(java.lang.Object obj)
           
 Properties getDriverProperties()
          Get the driver configuration properties from the DriverResourceAdapter instance associated with this managed connection factory.
 DriverResourceAdapterBase getDriverResourceAdapterBase()
          Get access to the DriverResourceAdapterBase instance associated with this managed connection factory.
 PrintWriter getLogWriter()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 int hashCode()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(Set connSet, javax.security.auth.Subject sub, javax.resource.spi.ConnectionRequestInfo info)
           
 void setLogWriter(PrintWriter writer)
           
 void setResourceAdapter(javax.resource.spi.ResourceAdapter adapter)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
createManagedConnection
 

Constructor Detail

DriverManagedConnectionFactoryBase

public DriverManagedConnectionFactoryBase()
Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cm)
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.createConnectionFactory(javax.resource.spi.ConnectionManager)

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.createConnectionFactory()

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(Set connSet,
                                                                    javax.security.auth.Subject sub,
                                                                    javax.resource.spi.ConnectionRequestInfo info)
                                                             throws javax.resource.ResourceException
Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.matchManagedConnections(java.util.Set, javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)

setLogWriter

public void setLogWriter(PrintWriter writer)
                  throws javax.resource.ResourceException
Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.setLogWriter(java.io.PrintWriter)

getLogWriter

public PrintWriter getLogWriter()
                         throws javax.resource.ResourceException
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.getLogWriter()

getDriverResourceAdapterBase

public DriverResourceAdapterBase getDriverResourceAdapterBase()
Get access to the DriverResourceAdapterBase instance associated with this managed connection factory.

Returns:
the DriverResourceAdapterBase instance.

getDriverProperties

public Properties getDriverProperties()
Get the driver configuration properties from the DriverResourceAdapter instance associated with this managed connection factory.

Returns:
the DriverResourceAdapterBase instance.

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
See Also:
ResourceAdapterAssociation.getResourceAdapter()

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter adapter)
                        throws javax.resource.ResourceException
Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Throws:
javax.resource.ResourceException
See Also:
ResourceAdapterAssociation.setResourceAdapter(javax.resource.spi.ResourceAdapter)

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
equals in class java.lang.Object

Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

Copyright © 2009, 2013 Oracle and/or its affiliates. All rights reserved.