org.objectweb.jonathan.apis.kernel
Interface MultiFactory
- JAssemblage, JAtom, JImplicitFactory
public interface MultiFactory
MultiFactory
complements the
Factory
type
with the ability for some factories to provide different
implementation alternatives.
newObject
public Object newObject(Context context,
int alternative,
Instanciable instanciable)
throws JonathanException
Returns an object created using information contained in the provided
context
.
context
- a Context
object;alternative
- the implementation alternative to use.instanciable
- the method's caller.
- an object created by the factory.
JonathanException
- if something goes wrong.