org.ldaptive.beans.spring
Class SpringClassDescriptor

java.lang.Object
  extended by org.ldaptive.beans.AbstractClassDescriptor
      extended by 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.

Version:
$Revision: 3013 $ $Date: 2014-07-02 11:26:52 -0400 (Wed, 02 Jul 2014) $
Author:
Middleware Services

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ldaptive.beans.AbstractClassDescriptor
AbstractClassDescriptor.SimpleAttributeValueMutator, AbstractClassDescriptor.SimpleDnValueMutator
 
Field Summary
 
Fields inherited from class org.ldaptive.beans.AbstractClassDescriptor
logger
 
Constructor Summary
SpringClassDescriptor(org.springframework.expression.EvaluationContext context)
          Creates a new spring class descriptor.
 
Method Summary
protected  DnValueMutator createDnValueMutator(String dnProperty)
          Creates a dn value mutator for the supplied SPEL dn property expression.
 void initialize(Class<?> type)
          Prepare this class descriptor for use.
 
Methods inherited from class org.ldaptive.beans.AbstractClassDescriptor
addAttributeValueMutator, addAttributeValueMutator, getAttributeValueMutator, getAttributeValueMutators, getDnValueMutator, setDnValueMutator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringClassDescriptor

public SpringClassDescriptor(org.springframework.expression.EvaluationContext context)
Creates a new spring class descriptor.

Parameters:
context - to use for SPEL evaluation
Method Detail

initialize

public void initialize(Class<?> type)
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


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.