|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.factory.PooledFactory<T>
public class PooledFactory<T>
This class decorates a Factory object that uses a Pool strategy to cache the factory result;
| Constructor Summary | |
|---|---|
PooledFactory(Factory<T> factory,
Pool<T> pool)
|
|
| Method Summary | |
|---|---|
T |
create()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PooledFactory(Factory<T> factory,
Pool<T> pool)
| Method Detail |
|---|
public T create()
create in interface Factory<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||