Package jakarta.resource.spi
Annotation Type ConnectionDefinition
- 
 @Documented @Retention(RUNTIME) @Target(TYPE) @Repeatable(ConnectionDefinitions.class) public @interface ConnectionDefinition Defines a set of connection interfaces and classes pertaining to a particular connection type. This annotation can be placed only on a JavaBean that implements theManagedConnectionFactoryinterface.- Since:
- 1.6
 
- 
- 
Required Element SummaryRequired Elements Modifier and Type Required Element Description ClassconnectionSpecifies the Connection interface supported by the resource adapter.ClassconnectionFactorySpecifies the ConnectionFactory interface supported by the resource adapter.ClassconnectionFactoryImplSpecifies the Class provided by the resource adapter that implements the resource adapter specific ConnectionFactory interface.ClassconnectionImplSpecifies the class provided by the resource adapter that implements the resource adapter specific Connection interface.
 
- 
- 
- 
Element Detail- 
connectionFactoryClass connectionFactory Specifies the ConnectionFactory interface supported by the resource adapter. Example: jakarta.resource.cci.ConnectionFactory or com.wombat.ConnectionFactory- Returns:
- the ConnectionFactory interface
 
 
- 
 - 
- 
connectionFactoryImplClass connectionFactoryImpl Specifies the Class provided by the resource adapter that implements the resource adapter specific ConnectionFactory interface. Example: com.wombat.ConnectionFactoryImpl- Returns:
- the implementation class of the ConnectionFactory interface
 
 
- 
 - 
- 
connectionClass connection Specifies the Connection interface supported by the resource adapter. Example: jakarta.resource.cci.Connection or com.wombat.Connection- Returns:
- the Connection interface
 
 
- 
 - 
- 
connectionImplClass connectionImpl Specifies the class provided by the resource adapter that implements the resource adapter specific Connection interface. Example: com.wombat.ConnectionImpl- Returns:
- the implementation class of the Connection interface
 
 
- 
 
-