public interface

PropertyBuilder

com.atlassian.plugin.osgi.hostcomponents.PropertyBuilder

Class Overview

Ties properties to the host component registration. Properties can be set via specific methods or generically via withProperty(String, String)

Summary

Constants
String BEAN_NAME The name of the host component bean, usually the Spring bean identifier
String CONTEXT_CLASS_LOADER_STRATEGY The context class loader strategy to use for managing the CCL when invoking host component methods
Public Methods
PropertyBuilder withContextClassLoaderStrategy(ContextClassLoaderStrategy strategy)
Sets the strategy to use for context classloader management
PropertyBuilder withName(String name)
Sets the bean name of the host component
PropertyBuilder withProperty(String name, String value)
Sets an arbitrary property to register with the host component

Constants

public static final String BEAN_NAME

The name of the host component bean, usually the Spring bean identifier

Constant Value: "bean-name"

public static final String CONTEXT_CLASS_LOADER_STRATEGY

The context class loader strategy to use for managing the CCL when invoking host component methods

Constant Value: "context-class-loader-strategy"

Public Methods

public PropertyBuilder withContextClassLoaderStrategy (ContextClassLoaderStrategy strategy)

Sets the strategy to use for context classloader management

Parameters
strategy The strategy to use
Returns
  • The property builder

public PropertyBuilder withName (String name)

Sets the bean name of the host component

Parameters
name The name
Returns
  • The property builder

public PropertyBuilder withProperty (String name, String value)

Sets an arbitrary property to register with the host component

Parameters
name The property name
value The property value
Returns
  • The property builder