net.sourceforge.servletspy.handler.filter
Class PackageFilter

java.lang.Object
  extended bynet.sourceforge.servletspy.handler.filter.PackageFilter
All Implemented Interfaces:
IContextHandler, ILifecycle

public final class PackageFilter
extends java.lang.Object
implements IContextHandler

Author:
arno schumacher

Field Summary
static java.lang.String PARAM_EXCLUDES
          Configuration parameter name used to pass a list of space separated package names to exclude.
protected  java.util.Set pkgsNames
          The set of packages not to consider within the serialization process.
 
Constructor Summary
PackageFilter()
          Constructor.
 
Method Summary
protected  void addFromString(java.lang.String clazzes)
           
 void destroy()
           
 void handle(IContext context)
          The handle method of the IContextHandler is called by the engine each time a subject object should be serialized.
 void init(Param[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_EXCLUDES

public static final java.lang.String PARAM_EXCLUDES
Configuration parameter name used to pass a list of space separated package names to exclude.

See Also:
Constant Field Values

pkgsNames

protected java.util.Set pkgsNames
The set of packages not to consider within the serialization process.

Constructor Detail

PackageFilter

public PackageFilter()
Constructor.

Method Detail

addFromString

protected void addFromString(java.lang.String clazzes)

destroy

public void destroy()
Specified by:
destroy in interface ILifecycle

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
Parameters:
context - The current serialization context
Throws:
java.lang.Exception - To signal serialization problems

init

public void init(Param[] params)
Specified by:
init in interface ILifecycle
Parameters:
params - The initialization parameters


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