mandala.rami
Interface Framework.Factory

All Known Implementing Classes:
AbstractARFactory
Enclosing interface:
Framework

public static interface Framework.Factory

The Factory used to instanciate AsynchronousReference implementation.


Method Summary
 AsynchronousReference getInstance(java.lang.Object object)
          Returns the AsynchronousReference which references the specified object.
 AsynchronousReference newInstance(ConstructorOp c, java.lang.Object[] args)
          Returns a new AsynchronousReference which references the object created with the given constructor and parameter.
 

Method Detail

getInstance

public AsynchronousReference getInstance(java.lang.Object object)

Returns the AsynchronousReference which references the specified object.

If such an asynchronous reference doesn't exist, it will be created.

Parameters:
object - the object the returned asynchronous reference must refer to
Returns:
the asynchronous reference referencing the given object

newInstance

public AsynchronousReference newInstance(ConstructorOp c,
                                         java.lang.Object[] args)

Returns a new AsynchronousReference which references the object created with the given constructor and parameter.

Parameters:
c - the constructor to use for the instanciation
args - the arguments to use for the instanciation
Returns:
the asynchronous reference on the new object
Throws:
java.lang.RuntimeException - if an exception occurs during the instanciation. Note that any implementation may at least throws the following exception returned by Throwable.getCause():
  • InstantiationException if the class that declares the underlying constructor represents an abstract class.
  • InvocationTargetException if the underlying constructor throws an exception.
  • ExceptionInInitializerError if the initialization provoked by this method fails.


Mandala help mailing list