## Uses of Interface
javax.resource.spi.ManagedConnectionFactory

- Packages that use ManagedConnectionFactory
  Package | Description
  --- | ---
  javax.resource.spi | The javax.resource.spi package contains APIs for the system contracts defined in the Java EE Connector Architecture specification.
  javax.resource.spi.security | The javax.resource.spi.security package contains APIs for the security management contract.

- - ### Uses of ManagedConnectionFactory in javax.resource.spi

    Methods in javax.resource.spi with parameters of type ManagedConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `Object` | ConnectionManager.`allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cxRequestInfo)` The method allocateConnection gets called by the resource adapter's connection factory instance.
    `void` | LazyAssociatableConnectionManager.`associateConnection(Object connection, ManagedConnectionFactory mcf, ConnectionRequestInfo cxReqInfo)` This method is called by a resource adapter (that is capable of lazy connection association optimization) in order to lazily associate a connection object with a `ManagedConnection` instance.
    `void` | LazyAssociatableConnectionManager.`inactiveConnectionClosed(Object connection, ManagedConnectionFactory mcf)` This method is called by the resource adapter (that is capable of lazy connection association optimization) in order to notify the application server that a disassociated connection handle is closed.

  - ### Uses of ManagedConnectionFactory in javax.resource.spi.security

    Methods in javax.resource.spi.security that return ManagedConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `ManagedConnectionFactory` | PasswordCredential.`getManagedConnectionFactory()` Gets the target ManagedConnectionFactory for which the user name and password has been set by the application server.

    Methods in javax.resource.spi.security with parameters of type ManagedConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `void` | PasswordCredential.`setManagedConnectionFactory(ManagedConnectionFactory mcf)` Sets the target ManagedConenctionFactory instance for which the user name and password has been set by the application server.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.