jef.dna.attributes.impl
Class AttributeFactory

java.lang.Object
  extended by jef.dna.attributes.impl.AttributeFactory
All Implemented Interfaces:
AttribFactory

public class AttributeFactory
extends java.lang.Object
implements AttribFactory

Implementation class of the AttribFactory interface.

Author:
frusso

Field Summary
protected static Logger logger
          Logger
 
Constructor Summary
AttributeFactory()
           
 
Method Summary
 Attribute getInstance(AttributeTypes type)
          This method returns not populated Attribute instances.
 Attribute getInstance(java.io.DataInputStream dis, Dna dna)
          This method returns not populated Attribute instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Logger logger
Logger

Constructor Detail

AttributeFactory

public AttributeFactory()
Method Detail

getInstance

public Attribute getInstance(AttributeTypes type)
                      throws UnsupportedAttributeException
Description copied from interface: AttribFactory
This method returns not populated Attribute instances.

Specified by:
getInstance in interface AttribFactory
Parameters:
type - Which attribute to instantiate
Returns:
Attribute The requested attribute
Throws:
UnsupportedAttributeException

getInstance

public Attribute getInstance(java.io.DataInputStream dis,
                             Dna dna)
                      throws DnaDeserializationException
Description copied from interface: AttribFactory
This method returns not populated Attribute instances.

Specified by:
getInstance in interface AttribFactory
Parameters:
dis - The input stream the attribute has to be instantiated from
dna - The Dna instance which will contain the returned Attribute instance
Returns:
Attribute The required attribute
Throws:
DnaDeserializationException