Annotation Interface EnablePluginAutoconfiguration
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@AutoConfigurationPackage
@Import(PluginAutoConfigurationImportSelector.class)
public @interface EnablePluginAutoconfiguration
Enable auto-configuration of the Spring Application Context, attempting to guess and
configure beans that you are likely to need. Auto-configuration classes are usually
applied based on your classpath and what beans you have defined.
It is similar in design to EnableAutoConfiguration,
but it will not pick up spring autoconfiguration. It will only pick up autoconfiguration
prepared for Rarog plugins, but this is the only significant difference.
Auto-configuration classes are regular Spring @Configuration
beans. They are located using PluginImportCandidates. Generally auto-configuration
beans are @Conditional beans (most often using
@ConditionalOnClass and
@ConditionalOnMissingBean annotations).
If you are interested in developing autoconfiguration for Rarog plugin you should take a look at
- See Also:
-
PluginImportCandidatesEnableAutoConfigurationConditionalOnBeanConditionalOnMissingBeanConditionalOnClassAutoConfigureAfter
-
Element Details
-
exclude
Class<?>[] excludeExclude specific auto-configuration classes such that they will never be applied.- Returns:
- the classes to exclude
- Default:
- {}
-
excludeName
String[] excludeNameExclude specific auto-configuration class names such that they will never be applied.- Returns:
- the class names to exclude
- Since:
- 1.3.0
- Default:
- {}
-