|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.seaf.factory.impl.support.DelegatingFactoryBase
net.sf.seaf.factory.impl.TypeResolvingFactory
public class TypeResolvingFactory
Factory that resolves the requested type before delegating instantiation to an instantiating factory.
When the type resolver returns null, throws
SeafTypeResolvingException.
| Constructor Summary | |
|---|---|
TypeResolvingFactory()
Default empty constructor. |
|
TypeResolvingFactory(TypeResolver<?> typeResolver,
Factory instantiatingFactory)
Full constructor. |
|
| Method Summary | ||
|---|---|---|
|
getInstanceOf(Class<Type> type)
Return an initialized instance of the specified type. |
|
void |
setTypeResolver(TypeResolver<?> typeResolver)
Set the type resolver. |
|
| Methods inherited from class net.sf.seaf.factory.impl.support.DelegatingFactoryBase |
|---|
getInstantiatingFactory, setInstantiatingFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeResolvingFactory()
public TypeResolvingFactory(TypeResolver<?> typeResolver,
Factory instantiatingFactory)
typeResolver - The type resolverinstantiatingFactory - The instantiating factory| Method Detail |
|---|
public <Type> Type getInstanceOf(Class<Type> type)
throws SeafTypeResolvingException
Factory
getInstanceOf in interface Factorytype - The type of the requested instance
SeafTypeResolvingExceptionpublic final void setTypeResolver(TypeResolver<?> typeResolver)
typeResolver - The type resolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||