public class BaseTraitStyleConfig extends Object
Constructor and Description |
---|
BaseTraitStyleConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected Pattern |
getExcludeBaseType() |
protected String[] |
getExcludeName() |
protected Class<?>[] |
getExcludeReturnType() |
int |
hashCode() |
protected boolean |
isCacheLookups() |
BaseTraitStyleConfig |
setCacheLookups(boolean cacheLookups)
Sets whether to cache lookups for a class.
|
BaseTraitStyleConfig |
setExcludeBaseType(Pattern excludeBaseType)
Sets the Pattern used to exclude base types when searching up the model inheritance chain.
|
BaseTraitStyleConfig |
setExcludeName(String... excludeName)
Sets a list of names to exclude when searching for traits.
|
BaseTraitStyleConfig |
setExcludeReturnType(Class<?>... excludeReturnType)
Sets a list of return types to exclude when searching for traits.
|
public BaseTraitStyleConfig setCacheLookups(boolean cacheLookups)
True by default.
public BaseTraitStyleConfig setExcludeBaseType(Pattern excludeBaseType)
This can be useful when the base types define traits that are framework-specific, and should be filtered out from 'real' business model traits.
By default, excludes any base types from java.*
or javax.*
. Note
this is not strictly JavaBean convention, because Introspector.getBeanInfo
does
actually honor getClass
. However, this is rarely what we want when inspecting
domain objects.
public BaseTraitStyleConfig setExcludeReturnType(Class<?>... excludeReturnType)
This can be useful when the convention or base class define traits that are framework-specific, and should be filtered out from 'real' business model traits.
By default, does not exclude any return types.
excludeReturnType
- list of return types to consider for exclusionpublic BaseTraitStyleConfig setExcludeName(String... excludeName)
This can be useful when the convention or base class define traits that are framework-specific, and should be filtered out from 'real' business model traits.
By default, does not exclude any return types.
excludeName
- list of names to consider for exclusionprotected boolean isCacheLookups()
protected Pattern getExcludeBaseType()
protected Class<?>[] getExcludeReturnType()
protected String[] getExcludeName()
Copyright © 2015. All Rights Reserved.