br.com.arsmachina.tapestrycrud.encoder
Interface ActivationContextEncoder<T>

Type Parameters:
T - the entity class related to this encoder.
All Known Subinterfaces:
Encoder<T,K>

public interface ActivationContextEncoder<T>

Interface that encapsulates the Tapestry 5 activation context logic for objects of a given type.

Author:
Thiago H. de Paula Figueiredo

Method Summary
 Object toActivationContext(T object)
          Given an object, returns its activation context value.
 T toObject(EventContext value)
          Given an activation context value, returns its object.
 

Method Detail

toActivationContext

Object toActivationContext(T object)
Given an object, returns its activation context value.

Parameters:
object - an EventContext.
Returns:
an Object. It must be null if object is null.

toObject

T toObject(EventContext value)
Given an activation context value, returns its object.

Parameters:
value - an EventContext.
Returns:
a T.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.