org.omnaest.utils.beans.adapter
Class SourcePropertyAccessorToTypeAdapter.Configuration

java.lang.Object
  extended by org.omnaest.utils.beans.adapter.SourcePropertyAccessorToTypeAdapter.Configuration
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PropertynameMapToTypeAdapter.Configuration
Enclosing class:
SourcePropertyAccessorToTypeAdapter<T>

public static class SourcePropertyAccessorToTypeAdapter.Configuration
extends Object
implements Serializable

The SourcePropertyAccessorToTypeAdapter.Configuration of a SourcePropertyAccessorToTypeAdapter includes following settings:



If setPropertyAccessOption(PropertyAccessOption) is set to another PropertyAccessOption it is possible to access the underlying Map keys e.g. with lowercased keys instead of the case sensitive property names.

If setRegardingAdapterAnnotation(boolean) is set to true, the Converter are evaluated and the respective ElementConverter be called to translate the setter parameter or the getter return value.

If setRegardingPropertyNameTemplate(boolean) is set to true, all PropertyNameTemplate Annotations are considered.

Author:
Omnaest
See Also:
Converter, PropertyNameTemplate, SourcePropertyAccessorToTypeAdapter, Serialized Form

Nested Class Summary
static class SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope
          Scope Annotations are scanned
 
Constructor Summary
SourcePropertyAccessorToTypeAdapter.Configuration()
           
SourcePropertyAccessorToTypeAdapter.Configuration(Class<?>... interfaces)
           
SourcePropertyAccessorToTypeAdapter.Configuration(MethodInvocationHandlerDecorator[] methodInvocationHandlerDecorators, SourcePropertyAccessorDecorator[] sourcePropertyAccessorDecorators)
           
SourcePropertyAccessorToTypeAdapter.Configuration(PropertyAccessOption propertyAccessOption, boolean isRegardingAdapterAnnotation, boolean isRegardingPropertyNameTemplateAnnotation, boolean isRegardingDefaultValueAnnotation)
           
 
Method Summary
 void addInterface(Class<?> interfaceType)
           
 void addMethodInvocationHandlerDecorator(MethodInvocationHandlerDecorator methodInvocationHandlerDecorator)
           
 void addSourcePropertyAccessorDecorator(SourcePropertyAccessorDecorator sourcePropertyAccessorDecorator)
           
 Class<?>[] getInterfaces()
           
 MethodInvocationHandlerDecorator[] getMethodInvocationHandlerDecorators()
           
 PropertyAccessOption getPropertyAccessOption()
           
 SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope getRegardedAnnotationScope()
           
 SourcePropertyAccessorDecorator[] getSourcePropertyAccessorDecorators()
           
 boolean isRegardingAdapterAnnotation()
           
 boolean isRegardingDefaultValueAnnotation()
           
 boolean isRegardingPropertyNameTemplateAnnotation()
           
 void setInterfaces(Class<?>[] interfaces)
           
 void setMethodInvocationHandlerDecorators(MethodInvocationHandlerDecorator[] methodInvocationHandlerDecorators)
           
 void setPropertyAccessOption(PropertyAccessOption propertyAccessOption)
           
 void setRegardedAnnotationScope(SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope regardedAnnotationScope)
           
 void setRegardingAdapterAnnotation(boolean isRegardingAdapterAnnotation)
           
 void setRegardingDefaultValueAnnotation(boolean isRegardingDefaultValueAnnotation)
           
 void setRegardingPropertyNameTemplate(boolean isRegardingPropertyNameTemplate)
           
 void setSourcePropertyAccessorDecorators(SourcePropertyAccessorDecorator[] sourcePropertyAccessorDecorators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourcePropertyAccessorToTypeAdapter.Configuration

public SourcePropertyAccessorToTypeAdapter.Configuration(MethodInvocationHandlerDecorator[] methodInvocationHandlerDecorators,
                                                         SourcePropertyAccessorDecorator[] sourcePropertyAccessorDecorators)
Parameters:
methodInvocationHandlerDecorators -
sourcePropertyAccessorDecorators -

SourcePropertyAccessorToTypeAdapter.Configuration

public SourcePropertyAccessorToTypeAdapter.Configuration(PropertyAccessOption propertyAccessOption,
                                                         boolean isRegardingAdapterAnnotation,
                                                         boolean isRegardingPropertyNameTemplateAnnotation,
                                                         boolean isRegardingDefaultValueAnnotation)
Parameters:
propertyAccessOption -
isRegardingAdapterAnnotation -
isRegardingPropertyNameTemplateAnnotation -
isRegardingDefaultValueAnnotation -
See Also:
SourcePropertyAccessorToTypeAdapter.Configuration

SourcePropertyAccessorToTypeAdapter.Configuration

public SourcePropertyAccessorToTypeAdapter.Configuration()

SourcePropertyAccessorToTypeAdapter.Configuration

public SourcePropertyAccessorToTypeAdapter.Configuration(Class<?>... interfaces)
Parameters:
interfaces -
Method Detail

addInterface

public void addInterface(Class<?> interfaceType)
Parameters:
interfaceType -

addSourcePropertyAccessorDecorator

public void addSourcePropertyAccessorDecorator(SourcePropertyAccessorDecorator sourcePropertyAccessorDecorator)
Parameters:
sourcePropertyAccessorDecorator -
See Also:
SourcePropertyAccessorDecorator

addMethodInvocationHandlerDecorator

public void addMethodInvocationHandlerDecorator(MethodInvocationHandlerDecorator methodInvocationHandlerDecorator)
Parameters:
methodInvocationHandlerDecorator -
See Also:
MethodInvocationHandlerDecorator

getInterfaces

public Class<?>[] getInterfaces()

setInterfaces

public void setInterfaces(Class<?>[] interfaces)

getMethodInvocationHandlerDecorators

public MethodInvocationHandlerDecorator[] getMethodInvocationHandlerDecorators()

setMethodInvocationHandlerDecorators

public void setMethodInvocationHandlerDecorators(MethodInvocationHandlerDecorator[] methodInvocationHandlerDecorators)

getPropertyAccessOption

public PropertyAccessOption getPropertyAccessOption()

setPropertyAccessOption

public void setPropertyAccessOption(PropertyAccessOption propertyAccessOption)

getSourcePropertyAccessorDecorators

public SourcePropertyAccessorDecorator[] getSourcePropertyAccessorDecorators()

setSourcePropertyAccessorDecorators

public void setSourcePropertyAccessorDecorators(SourcePropertyAccessorDecorator[] sourcePropertyAccessorDecorators)

isRegardingAdapterAnnotation

public boolean isRegardingAdapterAnnotation()

setRegardingAdapterAnnotation

public void setRegardingAdapterAnnotation(boolean isRegardingAdapterAnnotation)

isRegardingPropertyNameTemplateAnnotation

public boolean isRegardingPropertyNameTemplateAnnotation()

setRegardingPropertyNameTemplate

public void setRegardingPropertyNameTemplate(boolean isRegardingPropertyNameTemplate)

getRegardedAnnotationScope

public SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope getRegardedAnnotationScope()

setRegardedAnnotationScope

public void setRegardedAnnotationScope(SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope regardedAnnotationScope)

isRegardingDefaultValueAnnotation

public boolean isRegardingDefaultValueAnnotation()

setRegardingDefaultValueAnnotation

public void setRegardingDefaultValueAnnotation(boolean isRegardingDefaultValueAnnotation)


Copyright © 2013. All Rights Reserved.