com.atlassian.plugin.spring
Annotation Type AvailableToPlugins


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface AvailableToPlugins

Annotation for Spring beans which are made available to OSGi plugin components If a Class is specified, then the bean is exposed only as that class -- otherwise it is exposed as all interfaces it implements.


Optional Element Summary
 ContextClassLoaderStrategy contextClassLoaderStrategy
           
 Class[] interfaces
           
 Class value
           
 

value

public abstract Class value
Returns:
The interface the bean is to be exposed as.
Default:
java.lang.Void.class

interfaces

public abstract Class[] interfaces
Returns:
The interfaces the bean is to be exposed as. If declared together with {#value}, the result will be combined effect. However, it is highly recommended to use only one of them for clarity.
Since:
2.11.0
Default:
{}

contextClassLoaderStrategy

public abstract ContextClassLoaderStrategy contextClassLoaderStrategy
Returns:
The context class loader strategy to use when determine which CCL should be set when host component methods are invoked
Default:
com.atlassian.plugin.osgi.hostcomponents.ContextClassLoaderStrategy.USE_HOST


Copyright © 2013 Atlassian. All Rights Reserved.