Package generic.cache
Interface BasicFactory<T>
-
- All Known Implementing Classes:
CountingBasicFactory
public interface BasicFactory<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
create()
Creates an instance ofBasicFactory
.void
dispose(T t)
Called when clients are finished with the given item and it should be disposed.
-
-
-
Method Detail
-
create
T create() throws java.lang.Exception
Creates an instance ofBasicFactory
.- Returns:
- the new instance of T
- Throws:
java.lang.Exception
- any Exception encountered during creation
-
dispose
void dispose(T t)
Called when clients are finished with the given item and it should be disposed.- Parameters:
t
- the item to dispose.
-
-