org.objectweb.fractal.task.core
Class RecordTemplate

java.lang.Object
  extended by org.objectweb.fractal.task.core.RecordTemplate

public class RecordTemplate
extends java.lang.Object

A RecordTemplate can be used when different Record must be instantiated with the same record descriptor and different list of arguments.


Constructor Summary
RecordTemplate(java.lang.String recordDesc)
          Create a template of record for the given record descriptor.
 
Method Summary
 Record instantiate(java.lang.Object... args)
          Instantiate a record by replacing the "%" field values of the descriptor by the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordTemplate

public RecordTemplate(java.lang.String recordDesc)
Create a template of record for the given record descriptor.

Parameters:
recordDesc - a record descriptor.
Method Detail

instantiate

public Record instantiate(java.lang.Object... args)
Instantiate a record by replacing the "%" field values of the descriptor by the given arguments.

Parameters:
args - the arguments of the record.
Returns:
a new record object.


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.