org.specrunner.annotator.core
Class AnnotatorFactoryImpl

java.lang.Object
  extended by org.specrunner.annotator.core.AnnotatorFactoryImpl
All Implemented Interfaces:
IAnnotatorFactory
Direct Known Subclasses:
AnnotatorFactoryDefault

public class AnnotatorFactoryImpl
extends Object
implements IAnnotatorFactory

Default factory implementation.

Author:
Thiago Santos

Field Summary
protected  IAnnotator annotator
          Reused annotator.
 
Constructor Summary
AnnotatorFactoryImpl(IAnnotator annotator)
          Creates a new annotator factory.
 
Method Summary
 IAnnotator getAnnotator()
          Gets the annotator.
 IAnnotator newAnnotator()
          Creates an annotator.
 void setAnnotator(IAnnotator annotator)
          Set the annotator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotator

protected IAnnotator annotator
Reused annotator.

Constructor Detail

AnnotatorFactoryImpl

public AnnotatorFactoryImpl(IAnnotator annotator)
Creates a new annotator factory.

Parameters:
annotator - The annotator.
Method Detail

getAnnotator

public IAnnotator getAnnotator()
Gets the annotator.

Returns:
The annotator.

setAnnotator

public void setAnnotator(IAnnotator annotator)
Set the annotator.

Parameters:
annotator - The annotator.

newAnnotator

public IAnnotator newAnnotator()
                        throws AnnotatorException
Description copied from interface: IAnnotatorFactory
Creates an annotator.

Specified by:
newAnnotator in interface IAnnotatorFactory
Returns:
A annotator, can be a reused one or a brand new.
Throws:
AnnotatorException - On creation error.


Copyright © 2014. All rights reserved.