public interface MultiFactory
MultiFactory
complements the Factory
type
with the ability for some factories to provide different
implementation alternatives.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
newObject(Context context,
int alternative,
Instanciable instanciable)
Returns an object created using information contained in the provided
context . |
java.lang.Object newObject(Context context, int alternative, Instanciable instanciable) throws JonathanException
context
.context
- a Context
object;alternative
- the implementation alternative to use.instanciable
- the method's caller.JonathanException
- if something goes wrong.