Package org.ldaptive.beans.spring
Class SpringClassDescriptor
- java.lang.Object
-
- org.ldaptive.beans.AbstractClassDescriptor
-
- org.ldaptive.beans.spring.SpringClassDescriptor
-
- All Implemented Interfaces:
ClassDescriptor
public class SpringClassDescriptor extends AbstractClassDescriptor
Spring implementation of a class descriptor. Uses anEvaluationContextwith SPEL expressions to find property values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldaptive.beans.AbstractClassDescriptor
AbstractClassDescriptor.SimpleAttributeValueMutator, AbstractClassDescriptor.SimpleDnValueMutator
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.expression.EvaluationContextevaluationContextContext for evaluating spring expressions.-
Fields inherited from class org.ldaptive.beans.AbstractClassDescriptor
logger
-
-
Constructor Summary
Constructors Constructor Description SpringClassDescriptor(org.springframework.expression.EvaluationContext context)Creates a new spring class descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DnValueMutatorcreateDnValueMutator(String dnProperty)Creates a dn value mutator for the supplied SPEL dn property expression.voidinitialize(Class<?> type)Prepare this class descriptor for use.-
Methods inherited from class org.ldaptive.beans.AbstractClassDescriptor
addAttributeValueMutator, addAttributeValueMutator, getAttributeValueMutator, getAttributeValueMutators, getDnValueMutator, setDnValueMutator, toString
-
-
-
-
Method Detail
-
initialize
public void initialize(Class<?> type)
Description copied from interface:ClassDescriptorPrepare this class descriptor for use.- Parameters:
type- of object to describe
-
createDnValueMutator
protected DnValueMutator createDnValueMutator(String dnProperty)
Creates a dn value mutator for the supplied SPEL dn property expression. If an expression cannot be created, a simple dn value mutator is returned.- Parameters:
dnProperty- SPEL expression- Returns:
SpelDnValueMutatorif dnProperty can be parsed. Otherwise returns simple dn value mutator
-
-