org.springframework.plugin.core.config
Annotation Type EnablePluginRegistries


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
@Documented
@Import(value=PluginRegistriesBeanDefinitionRegistrar.class)
public @interface EnablePluginRegistries

Enables exposure of PluginRegistry instances for the configured Plugin types

Author:
Oliver Gierke
See Also:
value()

Required Element Summary
 Class<? extends Plugin<?>>[] value
          The Plugin types to register PluginRegistry instances for.
 

Element Detail

value

public abstract Class<? extends Plugin<?>>[] value
The 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.

Returns:


Copyright © 2008–2014 Pivotal, Inc.. All rights reserved.