Class AggregateDirContextProcessor
- java.lang.Object
-
- org.springframework.ldap.core.support.AggregateDirContextProcessor
-
- All Implemented Interfaces:
DirContextProcessor
public class AggregateDirContextProcessor extends java.lang.Object implements DirContextProcessor
Manages a sequence ofDirContextProcessorinstances. AppliespreProcess(DirContext)andpostProcess(DirContext)respectively in sequence on the managed objects.
-
-
Constructor Summary
Constructors Constructor Description AggregateDirContextProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirContextProcessor(DirContextProcessor processor)Add the supplied DirContextProcessor to the list of managed objects.java.util.List<DirContextProcessor>getDirContextProcessors()Get the list of managedDirContextProcessorinstances.voidpostProcess(javax.naming.directory.DirContext ctx)Perform post-processing on the suppliedDirContext.voidpreProcess(javax.naming.directory.DirContext ctx)Perform pre-processing on the supplied DirContext.voidsetDirContextProcessors(java.util.List<DirContextProcessor> dirContextProcessors)Set the list of managedDirContextProcessorinstances.
-
-
-
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<DirContextProcessor> getDirContextProcessors()
Get the list of managedDirContextProcessorinstances.- Returns:
- the managed list of
DirContextProcessorinstances.
-
setDirContextProcessors
public void setDirContextProcessors(java.util.List<DirContextProcessor> dirContextProcessors)
Set the list of managedDirContextProcessorinstances.- Parameters:
dirContextProcessors- the list ofDirContextProcessorinstances to set.
-
preProcess
public void preProcess(javax.naming.directory.DirContext ctx) throws javax.naming.NamingExceptionDescription copied from interface:DirContextProcessorPerform pre-processing on the supplied DirContext.- Specified by:
preProcessin interfaceDirContextProcessor- Parameters:
ctx- theDirContextinstance.- Throws:
javax.naming.NamingException- if thrown by the underlying operation.
-
postProcess
public void postProcess(javax.naming.directory.DirContext ctx) throws javax.naming.NamingExceptionDescription copied from interface:DirContextProcessorPerform post-processing on the suppliedDirContext.- Specified by:
postProcessin interfaceDirContextProcessor- Parameters:
ctx- theDirContextinstance.- Throws:
javax.naming.NamingException- if thrown by the underlying operation.
-
-