public class ScopeDataInspector
extends java.lang.Object
ScopeData
. It works with types and method parameters.Modifier and Type | Field and Description |
---|---|
protected ScopeResolver |
scopeResolver |
Constructor and Description |
---|
ScopeDataInspector() |
Modifier and Type | Method and Description |
---|---|
protected InjectionPoint |
buildInjectionPoint(java.lang.String annotationValue,
java.lang.String defaultValue,
java.lang.String propertyName,
java.lang.Class propertyType,
java.lang.Class<? extends MadvocScope> scope)
Builds injection point.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
detectAnnotationType(java.lang.annotation.Annotation[] annotations)
Scans annotation and returns type of Madvoc annotations.
|
ScopeData |
inspectClassScopes(java.lang.Class actionClass)
Inspects
ScopeData for given class. |
ScopeData |
inspectClassScopesWithCache(java.lang.Class actionClass)
Cached version of
inspectClassScopes(Class) . |
ScopeData |
inspectMethodParameterScopes(java.lang.String name,
java.lang.Class type,
java.lang.annotation.Annotation[] annotations)
Inspects
ScopeData parameters for given method parameter information. |
protected java.lang.Class<? extends MadvocScope> |
resolveScopeClassFromAnnotations(java.lang.annotation.Annotation[] annotations) |
@PetiteInject protected ScopeResolver scopeResolver
public java.lang.Class<? extends java.lang.annotation.Annotation> detectAnnotationType(java.lang.annotation.Annotation[] annotations)
public ScopeData inspectMethodParameterScopes(java.lang.String name, java.lang.Class type, java.lang.annotation.Annotation[] annotations)
ScopeData
parameters for given method parameter information.protected java.lang.Class<? extends MadvocScope> resolveScopeClassFromAnnotations(java.lang.annotation.Annotation[] annotations)
protected InjectionPoint buildInjectionPoint(java.lang.String annotationValue, java.lang.String defaultValue, java.lang.String propertyName, java.lang.Class propertyType, java.lang.Class<? extends MadvocScope> scope)
public ScopeData inspectClassScopesWithCache(java.lang.Class actionClass)
inspectClassScopes(Class)
. Use it in runtime when
configuration is not known yet.public ScopeData inspectClassScopes(java.lang.Class actionClass)
ScopeData
for given class. The results are not cached, so it should
be used only dyring configuration-time.
For cached version, use inspectClassScopesWithCache(Class)
.Copyright © 2003-present Jodd Team