com.atlassian.plugin.osgi.hostcomponents
Interface PropertyBuilder


public interface PropertyBuilder

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


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

Field Detail

BEAN_NAME

static final java.lang.String BEAN_NAME
The name of the host component bean, usually the Spring bean identifier

See Also:
Constant Field Values

CONTEXT_CLASS_LOADER_STRATEGY

static final java.lang.String CONTEXT_CLASS_LOADER_STRATEGY
The context class loader strategy to use for managing the CCL when invoking host component methods

See Also:
Constant Field Values
Method Detail

withName

PropertyBuilder withName(java.lang.String name)
Sets the bean name of the host component

Parameters:
name - The name
Returns:
The property builder

withContextClassLoaderStrategy

PropertyBuilder withContextClassLoaderStrategy(ContextClassLoaderStrategy strategy)
Sets the strategy to use for context classloader management

Parameters:
strategy - The strategy to use
Returns:
The property builder

withProperty

PropertyBuilder withProperty(java.lang.String name,
                             java.lang.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


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.