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