net.sf.seaf.factory
Interface Factory

All Known Implementing Classes:
CachingFactory, DefaultInstantiatingFactory, InitializingFactory, ProxyingFactory, SpringFactory, TypeResolvingFactory

public interface Factory

Factory instantiates and initializes objects.

It is assumed that for a given type, all instances are created and initialized in the same way.


Method Summary
<Type> Type
getInstanceOf(Class<Type> type)
          Return an initialized instance of the specified type.
 

Method Detail

getInstanceOf

<Type> Type getInstanceOf(Class<Type> type)
                   throws SeafRuntimeException
Return an initialized instance of the specified type.

Parameters:
type - The type of the requested instance
Returns:
The instance
Throws:
SeafRuntimeException - Thrown when the instance cannot be retrieved


Copyright © 2008-2011 SEAF. All Rights Reserved.