Package org.ldaptive.beans.reflect
Class MethodClassDescriptor
- java.lang.Object
-
- org.ldaptive.beans.AbstractClassDescriptor
-
- org.ldaptive.beans.reflect.MethodClassDescriptor
-
- All Implemented Interfaces:
ClassDescriptor
public class MethodClassDescriptor extends AbstractClassDescriptor
Creates DN and attribute mutators for theMethod
s on a type. Leverages theIntrospector
class for reading descriptors.- 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
Constructors Constructor Description MethodClassDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributeValueMutator
createAttributeValueMutator(java.beans.PropertyDescriptor desc, Attribute attribute)
Returns an attribute value mutator for the supplied property descriptor.protected DnValueMutator
createDnValueMutator(java.beans.PropertyDescriptor desc)
Returns a dn value mutator for the supplied property descriptor.protected java.util.Map<java.lang.String,java.beans.PropertyDescriptor>
getPropertyDescriptors(java.lang.Class<?> type)
Returns a map of property descriptor names to property descriptor.void
initialize(java.lang.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(java.lang.Class<?> type)
Description copied from interface:ClassDescriptor
Prepare this class descriptor for use.- Parameters:
type
- of object to describe
-
getPropertyDescriptors
protected java.util.Map<java.lang.String,java.beans.PropertyDescriptor> getPropertyDescriptors(java.lang.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(java.beans.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(java.beans.PropertyDescriptor desc, Attribute attribute)
Returns an attribute value mutator for the supplied property descriptor.- Parameters:
desc
- to create attribute value mutator forattribute
- attribute containing metadata- Returns:
- attribute value mutator
-
-