jef.dna.methodsTable.impl.def
Class MTableFactory

java.lang.Object
  extended by jef.dna.methodsTable.impl.def.MTableFactory
All Implemented Interfaces:
MethodsTableFactory

public class MTableFactory
extends java.lang.Object
implements MethodsTableFactory

This is the default real implementation class of the MethodsTableFactory interface.

Author:
Francesco Russo

Constructor Summary
MTableFactory()
          Creates a new instance of MTableFactory
 
Method Summary
 MethodsTable getInstance()
          Returns an empty instance of the MethodsTable interface
 MethodsTable getInstance(java.io.DataInputStream dis, Dna dna, int mc)
          Returns a populated instance of the MethodsTable interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTableFactory

public MTableFactory()
Creates a new instance of MTableFactory

Method Detail

getInstance

public MethodsTable getInstance()
Returns an empty instance of the MethodsTable interface

Specified by:
getInstance in interface MethodsTableFactory
Returns:
MethodsTable The implementation instance

getInstance

public MethodsTable getInstance(java.io.DataInputStream dis,
                                Dna dna,
                                int mc)
                         throws MissingDnaContainerException,
                                DnaDeserializationException
Returns a populated instance of the MethodsTable interface

Specified by:
getInstance in interface MethodsTableFactory
Parameters:
dis - The input stream the table has to be read from
dna - The Dna container
mc - The number of expected methods
Returns:
MethodsTable The implementation instance
Throws:
DnaDeserializationException
MissingDnaContainerException