Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.waiting.retrievers
Class AbstractRetriever<T>

java.lang.Object
  extended by org.jboss.arquillian.ajocado.waiting.retrievers.AbstractRetriever<T>
Type Parameters:
T - the type of object to retrieve from page
All Implemented Interfaces:
RetrievedValueHolder<T>
Direct Known Subclasses:
AttributeRetriever, TextRetriever

public abstract class AbstractRetriever<T>
extends Object
implements RetrievedValueHolder<T>

Retrieves the typed value from page and stores it as ThreadLocal.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
AbstractRetriever()
           
 
Method Summary
 T getValue()
          Returns the last retrieved value.
 void initializeValue()
          Initializes the value associated to this retriever internally.
 boolean isValueChanged()
           
abstract  T retrieve()
           
 void setValue(T value)
          Initializes the value associated to this retriever with given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRetriever

public AbstractRetriever()
Method Detail

getValue

public T getValue()
Description copied from interface: RetrievedValueHolder
Returns the last retrieved value.

Specified by:
getValue in interface RetrievedValueHolder<T>
Returns:
the last retriever value.

initializeValue

public void initializeValue()
Description copied from interface: RetrievedValueHolder
Initializes the value associated to this retriever internally.

Specified by:
initializeValue in interface RetrievedValueHolder<T>

setValue

public void setValue(T value)
Description copied from interface: RetrievedValueHolder
Initializes the value associated to this retriever with given value.

Specified by:
setValue in interface RetrievedValueHolder<T>
Parameters:
value - the value to associate with this retriever

isValueChanged

public boolean isValueChanged()

retrieve

public abstract T retrieve()

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.