net.sourceforge.servletspy.handler.base
Class AbstractInterfaceTransformer

java.lang.Object
  extended bynet.sourceforge.servletspy.handler.base.AbstractHandler
      extended bynet.sourceforge.servletspy.handler.base.AbstractInterfaceTransformer
All Implemented Interfaces:
IContextHandler, ILifecycle
Direct Known Subclasses:
ServletInterfacesHandler

public abstract class AbstractInterfaceTransformer
extends AbstractHandler

Author:
arno schumacher

Constructor Summary
protected AbstractInterfaceTransformer()
          Constructor.
protected AbstractInterfaceTransformer(java.lang.Class[] clazz)
          Constructor.
protected AbstractInterfaceTransformer(java.lang.String s)
          Constructor.
 
Method Summary
protected static java.lang.Class[] fromString(java.lang.String clazzes)
          Returns an array of java.lang.Class objects using the provided space separated string of class names as input.
 void handle(IContext context)
          The handle method of the IContextHandler is called by the engine each time a subject object should be serialized.
 
Methods inherited from class net.sourceforge.servletspy.handler.base.AbstractHandler
destroy, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInterfaceTransformer

protected AbstractInterfaceTransformer()
Constructor.


AbstractInterfaceTransformer

protected AbstractInterfaceTransformer(java.lang.Class[] clazz)
Constructor.

Parameters:
clazz - an array of class specifying the interfaces for which the transformer is applicable.

AbstractInterfaceTransformer

protected AbstractInterfaceTransformer(java.lang.String s)
Constructor.

Parameters:
s - space separated string of class names specifying the interfaces for which the transformer is applicable.
Method Detail

fromString

protected static java.lang.Class[] fromString(java.lang.String clazzes)
Returns an array of java.lang.Class objects using the provided space separated string of class names as input.

Parameters:
clazzes - The class names, space separated.
Returns:
An array of java.lang.Class objects.

handle

public final void handle(IContext context)
                  throws java.lang.Exception
Description copied from interface: IContextHandler
The handle method of the IContextHandler is called by the engine each time a subject object should be serialized. The IContextHandler may do the serialization itself using the operations provided by the IContext or pass the serialization task to the next IContextHandler by calling the proceed method on the IContext object.

Specified by:
handle in interface IContextHandler
Overrides:
handle in class AbstractHandler
Throws:
java.lang.Exception


Copyright 2005-2005-2006 Arno Schumacher. All Rights Reserved.