org.objectweb.jonathan.apis.kernel

Interface Instanciable

Known Implementing Classes:
JAssemblage

public interface Instanciable

Instanciable represents an object (a service) created by its factory.

Instanciables are used in order to prevent side effects while creating services. For the time being, they are used in case of circularity not to call their factory twice by stack returned when the service still exists.

Method Summary

Object
getInstance()
Return the service's instance.
boolean
isInstanciated()
Test if the service still exists.

Method Details

getInstance

public Object getInstance()
Return the service's instance.

Returns:
the service's instance.


isInstanciated

public boolean isInstanciated()
Test if the service still exists.

Returns:
true if the service still exists, false otherwise.