org.springframework.ldap.support
Class AggregateDirContextProcessor

java.lang.Object
  extended by org.springframework.ldap.support.AggregateDirContextProcessor
All Implemented Interfaces:
DirContextProcessor

public class AggregateDirContextProcessor
extends java.lang.Object
implements DirContextProcessor

Manages a sequence of DirContextProcessor instances. Applies preProcess(DirContext) and postProcess(DirContext) respectively in sequence on the managed objects.

Author:
Mattias Arthursson, Ulrik Sandberg

Constructor Summary
AggregateDirContextProcessor()
           
 
Method Summary
 void addDirContextProcessor(DirContextProcessor processor)
          Add the supplied DirContextProcessor to the list of managed objects.
 java.util.List getDirContextProcessors()
          Get the list of managed DirContextProcessors.
 void postProcess(javax.naming.directory.DirContext ctx)
          Perform post-processing on the supplied DirContext.
 void preProcess(javax.naming.directory.DirContext ctx)
          Perform pre-processing on the supplied DirContext.
 void setDirContextProcessors(java.util.List dirContextProcessors)
          Set the list of managed DirContextProcessor instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateDirContextProcessor

public AggregateDirContextProcessor()
Method Detail

addDirContextProcessor

public void addDirContextProcessor(DirContextProcessor processor)
Add the supplied DirContextProcessor to the list of managed objects.

Parameters:
processor - the DirContextpProcessor to add.

getDirContextProcessors

public java.util.List getDirContextProcessors()
Get the list of managed DirContextProcessors.

Returns:
the managed list of DirContextProcessor instances.

setDirContextProcessors

public void setDirContextProcessors(java.util.List dirContextProcessors)
Set the list of managed DirContextProcessor instances.

Parameters:
dirContextProcessors - the list of DirContextProcessor instances to set.

preProcess

public void preProcess(javax.naming.directory.DirContext ctx)
                throws javax.naming.NamingException
Description copied from interface: DirContextProcessor
Perform pre-processing on the supplied DirContext.

Specified by:
preProcess in interface DirContextProcessor
Parameters:
ctx - the DirContext instance.
Throws:
javax.naming.NamingException - if thrown by the underlying operation.

postProcess

public void postProcess(javax.naming.directory.DirContext ctx)
                 throws javax.naming.NamingException
Description copied from interface: DirContextProcessor
Perform post-processing on the supplied DirContext.

Specified by:
postProcess in interface DirContextProcessor
Parameters:
ctx - the DirContext instance.
Throws:
javax.naming.NamingException - if thrown by the underlying operation.


Copyright 2002-2006. All Rights Reserved.