org.codehaus.wadi.core.session
Class BasicValueHelperRegistry

java.lang.Object
  extended by org.codehaus.wadi.core.session.BasicValueHelperRegistry
All Implemented Interfaces:
ValueHelperRegistry

public class BasicValueHelperRegistry
extends java.lang.Object
implements ValueHelperRegistry

Version:
$Revision: 1538 $

Nested Class Summary
protected static class BasicValueHelperRegistry.HelperPair
           
 
Field Summary
protected  java.util.List helpers
           
 
Constructor Summary
BasicValueHelperRegistry()
           
 
Method Summary
 boolean deregisterHelper(java.lang.Class type)
           
 ValueHelper findHelper(java.lang.Class type)
           
 void registerHelper(java.lang.Class type, ValueHelper helper)
          Register a ValueHelper for a particular type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helpers

protected final java.util.List helpers
Constructor Detail

BasicValueHelperRegistry

public BasicValueHelperRegistry()
Method Detail

registerHelper

public void registerHelper(java.lang.Class type,
                           ValueHelper helper)
Register a ValueHelper for a particular type. During [de]serialisation Objects flowing in/out of the persistance medium will be passed through this Helper, which will have the opportunity to convert them between Serializable and non-Serializable representations. Helpers will be returned in their registration order, so this is significant (as an Object may implement more than one interface or registered type).

Parameters:
type -
helper -

deregisterHelper

public boolean deregisterHelper(java.lang.Class type)

findHelper

public ValueHelper findHelper(java.lang.Class type)
Specified by:
findHelper in interface ValueHelperRegistry


Copyright © 2008. All Rights Reserved.