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
           
 java.lang.Class[] interfaces
           
 boolean trackBundle
           
 java.lang.Class value
           
 

value

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

interfaces

public abstract java.lang.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

trackBundle

public abstract boolean trackBundle
Returns:
true if the component should track which bundle is accessing it. false otherwise
Since:
3.1.0
See Also:
CallingBundleAccessor
Default:
false


Copyright © 2013 Atlassian. All Rights Reserved.