org.objectweb.jonathan.apis.kernel
Interface Initializer

All Known Implementing Classes:
JAssemblage, JAtom, JImplicitFactory

public interface Initializer

Initializer represents the type for initializers of services.

Initializers are used in order to break circularities while creating services. For the time being, the only way to use initializers is to use factories that also implement the Initializer interface.


Method Summary
 void initialize(java.lang.Object object, Context context, int alternative)
          Initialize an object using information contained in the provided context.
 

Method Detail

initialize

public void initialize(java.lang.Object object,
                       Context context,
                       int alternative)
                throws JonathanException
Initialize an object using information contained in the provided context.

Parameters:
object - initialized using information contained in context.
context - a Context object;
alternative - the implementation alternative to use. If there is no alternative, this argument's value is -1.
Throws:
JonathanException - if something goes wrong.