|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.Factories.CastFactory<E>
public static final class Factories.CastFactory<E>
A simple factory which wraps another factory (ordinarily a SimpleObjectFactory) and (unsafely) casts the result to the type parameter provided.
| Constructor Summary | |
|---|---|
Factories.CastFactory(Factory<?> wrapped)
Create a new cast factory |
|
| Method Summary | |
|---|---|
E |
create()
Returns an object of type E. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Factories.CastFactory(Factory<?> wrapped)
wrapped - the factory to delegate creation to| Method Detail |
|---|
public E create()
FactoryE. This method should be thread-safe.
create in interface Factory<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||