com.envoisolutions.sxc
Class Context

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by com.envoisolutions.sxc.Context
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public abstract class Context
extends java.util.HashMap<java.lang.String,java.lang.Object>

Entry point to SXC runtime.

Context serves as the factory of Reader and Writer, as well as the generic configuration mechanism (HashMap)

See Also:
Serialized Form

Constructor Summary
Context()
           
 
Method Summary
abstract  Reader createReader()
          Obtains an instance of Reader.
abstract  Writer createWriter()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Context

public Context()
Method Detail

createReader

public abstract Reader createReader()
Obtains an instance of Reader.

Stateless Reader implementation may return the same reader for multiple invocations.

Returns:
null if the reader was not generated for this Context.

createWriter

public abstract Writer createWriter()


Copyright © 2007-2008 Envoi Solutions LLC. All Rights Reserved.