@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=PluginRegistriesBeanDefinitionRegistrar.class) public @interface EnablePluginRegistries
PluginRegistry
instances for the configured Plugin
typesvalue()
Modifier and Type | Required Element and Description |
---|---|
Class<? extends Plugin<?>>[] |
value
The
Plugin types to register PluginRegistry instances for. |
public abstract Class<? extends Plugin<?>>[] value
Plugin
types to register PluginRegistry
instances for. The registries will be named after the
uncapitalized plugin type extended with Registry
. So for a plugin interface SamplePlugin
the
exposed bean name will be samplePluginRegistry
. This can be used on the client side to make sure you get
the right PluginRegistry
injected by using the Qualifier
annotation and referring to that bean
name. If the auto-generated bean name collides with one already in your application you can use the
Qualifier
annotation right at the plugin interface to define a custom name.Copyright © 2008-2014–2015 Pivotal, Inc.. All rights reserved.