org.objectweb.jonathan.apis.kernel
Interface Instanciable

All 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
 java.lang.Object getInstance()
          Return the service's instance.
 boolean isInstanciated()
          Test if the service still exists.
 

Method Detail

isInstanciated

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

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

getInstance

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

Returns:
the service's instance.