org.filteredpush.mapper
Interface Mapper

All Known Subinterfaces:
DataPolicyMapper
All Known Implementing Classes:
DataPolicyMapperImpl

public interface Mapper

Interface for Mapper.

Author:
Lei Dou $Id$

Method Summary
 void setAdapterWithClass(DataSourceAdapter adapter)
          Set the adapter class used by this mapper.
 void setAdapterWithName(java.lang.String adapterClassQN)
          Set the class name (including the package name) of the adapter used by this mapper.
 void setContext(java.util.Map<java.lang.String,java.lang.String> context)
          Set the context, e.g.
 

Method Detail

setContext

void setContext(java.util.Map<java.lang.String,java.lang.String> context)
Set the context, e.g. the redirect page when the oAuth is used by the driver for authentication.

Parameters:
context -

setAdapterWithClass

void setAdapterWithClass(DataSourceAdapter adapter)
                         throws UnsupportedAdapter
Set the adapter class used by this mapper.

Parameters:
adapter - Adapter class.
Throws:
UnsupportedAdapter

setAdapterWithName

void setAdapterWithName(java.lang.String adapterClassQN)
                        throws AdapterNotFound,
                               UnsupportedAdapter
Set the class name (including the package name) of the adapter used by this mapper.

Parameters:
adapterClassQN - Adapter class name.
Throws:
AdapterNotFound
UnsupportedAdapter