org.clazzes.util.lifecycle
Interface ObjectFactory<T>

Type Parameters:
T - The class used as an id for the creatable objects.
All Known Subinterfaces:
Cache<T>, Recycler<T>
All Known Implementing Classes:
AbstractCacheImpl, AbstractObjectFactoryImpl, AbstractRecyclerImpl, ReflectionRecycler

public interface ObjectFactory<T>

A "factory" to provide lifecycle objects for the given id. This is the base interface which applies to both Cache and Recycler.

Author:
rbreuss

Method Summary
 ObjectCreatable<T> get(T key)
          Deliver an object for the passed key.
 

Method Detail

get

ObjectCreatable<T> get(T key)
Deliver an object for the passed key.

Parameters:
key - The key used to identify the object.
Returns:
the created object.


Copyright © 2010. All Rights Reserved.