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 an EvaluationContext with SPEL expressions to find property values.
  • Field Details

    • evaluationContext

      private final org.springframework.expression.EvaluationContext evaluationContext
      Context for evaluating spring expressions.
  • Constructor Details

    • SpringClassDescriptor

      public SpringClassDescriptor(org.springframework.expression.EvaluationContext context)
      Creates a new spring class descriptor.
      Parameters:
      context - to use for SPEL evaluation
  • Method Details

    • initialize

      public void initialize(Class<?> type)
      Description copied from interface: ClassDescriptor
      Prepare 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:
      SpelDnValueMutator if dnProperty can be parsed. Otherwise returns simple dn value mutator