org.ldaptive.beans.reflect
Class MethodClassDescriptor

java.lang.Object
  extended by org.ldaptive.beans.AbstractClassDescriptor
      extended by org.ldaptive.beans.reflect.MethodClassDescriptor
All Implemented Interfaces:
ClassDescriptor

public class MethodClassDescriptor
extends AbstractClassDescriptor

Creates DN and attribute mutators for the Methods on a type. Leverages the Introspector class for reading descriptors.

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
MethodClassDescriptor()
           
 
Method Summary
protected  AttributeValueMutator createAttributeValueMutator(PropertyDescriptor desc, Attribute attribute)
          Returns an attribute value mutator for the supplied property descriptor.
protected  DnValueMutator createDnValueMutator(PropertyDescriptor desc)
          Returns a dn value mutator for the supplied property descriptor.
protected  Map<String,PropertyDescriptor> getPropertyDescriptors(Class<?> type)
          Returns a map of property descriptor names to property descriptor.
 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

MethodClassDescriptor

public MethodClassDescriptor()
Method Detail

initialize

public void initialize(Class<?> type)
Prepare this class descriptor for use.

Parameters:
type - of object to describe

getPropertyDescriptors

protected Map<String,PropertyDescriptor> getPropertyDescriptors(Class<?> type)
Returns a map of property descriptor names to property descriptor.

Parameters:
type - of class to inspect
Returns:
map of name to property descriptor

createDnValueMutator

protected DnValueMutator createDnValueMutator(PropertyDescriptor desc)
Returns a dn value mutator for the supplied property descriptor.

Parameters:
desc - to create dn value mutator for
Returns:
dn value mutator

createAttributeValueMutator

protected AttributeValueMutator createAttributeValueMutator(PropertyDescriptor desc,
                                                            Attribute attribute)
Returns an attribute value mutator for the supplied property descriptor.

Parameters:
desc - to create attribute value mutator for
attribute - attribute containing metadata
Returns:
attribute value mutator


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