Package org.joinfaces.rewrite
Klasse SpringBootAnnotationConfigProvider
java.lang.Object
org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
org.joinfaces.rewrite.SpringBootAnnotationConfigProvider
- Alle implementierten Schnittstellen:
org.ocpsoft.common.pattern.Specialized<Object>
,org.ocpsoft.common.pattern.Weighted
,org.ocpsoft.rewrite.config.ConfigurationProvider<ServletContext>
public class SpringBootAnnotationConfigProvider
extends org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
An
HttpConfigurationProvider
that scans classes in the classpath for
Rewrite Annotations.
Inspired by the AnnotationConfigProvider
: Finds class' names and handles the rule evaluation via
ClassVisitorImpl
.
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
Resource path for the AOT classpath scan result. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T extends Annotation>
Set<Class<T>> getAnnotationClasses
(List<org.ocpsoft.rewrite.annotation.spi.AnnotationHandler<T>> annotationHandlers) List
<org.ocpsoft.rewrite.annotation.spi.AnnotationHandler<Annotation>> org.ocpsoft.rewrite.config.Configuration
getConfiguration
(ServletContext servletContext) boolean
int
priority()
scanClasses
(Set<Class<Annotation>> supportedAnnotations) void
setBasePackages
(List<String> basePackages) void
setEnabled
(boolean enabled) Von Klasse geerbte Methoden org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
handles
-
Felddetails
-
PREPARED_SCAN_RESULT_PATH
Resource path for the AOT classpath scan result.
-
-
Konstruktordetails
-
SpringBootAnnotationConfigProvider
public SpringBootAnnotationConfigProvider()
-
-
Methodendetails
-
getConfiguration
@Nullable public org.ocpsoft.rewrite.config.Configuration getConfiguration(ServletContext servletContext) -
priority
public int priority() -
getAnnotationHandlers
public List<org.ocpsoft.rewrite.annotation.spi.AnnotationHandler<Annotation>> getAnnotationHandlers() -
getAnnotationClasses
public <T extends Annotation> Set<Class<T>> getAnnotationClasses(List<org.ocpsoft.rewrite.annotation.spi.AnnotationHandler<T>> annotationHandlers) -
scanClasses
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getBasePackages
-
setBasePackages
-