Top Description Fields Constructors Methods
org.hibernate.boot.registry.selector

public Class SimpleStrategyRegistrationImpl<T>

extends Object
implements StrategyRegistration<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.registry.selector.StrategyRegistration
Type Parameters
<T>
The strategy type.
Imports
java.util.Arrays

A simple implementation of StrategyRegistration.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Iterable<String>
private final Class<? extends T>
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
SimpleStrategyRegistrationImpl(Class<T>
The strategy contract
strategyRole
,
Class<? extends T>
The strategy implementation class
strategyImplementation
,
Iterable<String>
The selection/registration names for this implementation
selectorNames
)

Constructs a SimpleStrategyRegistrationImpl.

public
SimpleStrategyRegistrationImpl(Class<T>
The strategy contract
strategyRole
,
Class<? extends T>
The strategy implementation class
strategyImplementation
,
String...
The selection/registration names for this implementation
selectorNames
)

Constructs a SimpleStrategyRegistrationImpl.

Method Summary

Modifier and TypeMethod and Description
public Iterable<String>
getSelectorNames()

Implements org.hibernate.boot.registry.selector.StrategyRegistration.getSelectorNames.

Any registered names for this strategy registration.
public Class<? extends T>
public Class<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

selectorNamesback to summary
private final Iterable<String> selectorNames
strategyImplementationback to summary
private final Class<? extends T> strategyImplementation
strategyRoleback to summary
private final Class<T> strategyRole

Constructor Detail

SimpleStrategyRegistrationImplback to summary
public SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, Iterable<String> selectorNames)

Constructs a SimpleStrategyRegistrationImpl.

Parameters
strategyRole:Class<T>

The strategy contract

strategyImplementation:Class<? extends T>

The strategy implementation class

selectorNames:Iterable<String>

The selection/registration names for this implementation

SimpleStrategyRegistrationImplback to summary
public SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, String... selectorNames)

Constructs a SimpleStrategyRegistrationImpl.

Parameters
strategyRole:Class<T>

The strategy contract

strategyImplementation:Class<? extends T>

The strategy implementation class

selectorNames:String[]

The selection/registration names for this implementation

Method Detail

getSelectorNamesback to summary
public Iterable<String> getSelectorNames()

Implements org.hibernate.boot.registry.selector.StrategyRegistration.getSelectorNames.

Doc from org.hibernate.boot.registry.selector.StrategyRegistration.getSelectorNames.

Any registered names for this strategy registration.

Returns:Iterable<String>

The registered selection names.

Annotations
@Override
getStrategyImplementationback to summary
public Class<? extends T> getStrategyImplementation()

Implements org.hibernate.boot.registry.selector.StrategyRegistration.getStrategyImplementation.

Doc from org.hibernate.boot.registry.selector.StrategyRegistration.getStrategyImplementation.

The strategy implementation class.

Returns:Class<? extends T>

The strategy implementation.

Annotations
@Override
getStrategyRoleback to summary
public Class<T> getStrategyRole()

Implements org.hibernate.boot.registry.selector.StrategyRegistration.getStrategyRole.

Doc from org.hibernate.boot.registry.selector.StrategyRegistration.getStrategyRole.

The strategy role. Best practice says this should be an interface.

Returns:Class<T>

The strategy contract/role.

Annotations
@Override