Top Description Methods
javax.cache.configuration

public Interface Factory<T>

extends Serializable
Known Direct Implementers
javax.cache.configuration.FactoryBuilder.ClassFactory, javax.cache.configuration.FactoryBuilder.SingletonFactory
Type Parameters
<T>
the type of factory constructed
Imports
java.io.Serializable

Constructs and returns a fully configured instance of a specific factory type.

Implementations may choose not to construct a new instance, but instead return a previously created instance.

Implementations must correctly implement Object#equals(Object) and Object#hashCode() as Factorys are often compared with each other for equivalence.

Author
Brian Oliver
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

an instance of T.
create
()

Constructs and returns a fully configured instance of T.

Method Detail

createback to summary
public T create()

Constructs and returns a fully configured instance of T.

Returns:T

an instance of T.