org.objectweb.jonathan.apis.kernel
Interface Factory

All Known Implementing Classes:
GenericFactory, JContextFactoryFactory, JImplicitFactory, OpenXMLDecoderFactory

public interface Factory

Factory represents the type for factories of bootstrap services.

Factories are used when it is not possible to describe directly an element in the Kernel.xml configuration file. In this case, factories may be used. A factory should implement the Factory interface and have a public no-arg constructor. The factory is registered in the configuration file using a FACTORY construct stipulating the name of the context element to construct and the java class name of the factory.


Method Summary
 java.lang.Object newObject(Context c)
          Returns an object created using information contained in the provided context.
 

Method Detail

newObject

public java.lang.Object newObject(Context c)
                           throws JonathanException
Returns an object created using information contained in the provided context.

Returns:
an object created using information contained in context.
Throws:
JonathanException - if something goes wrong.