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
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the host component bean, usually the Spring bean identifierstatic final StringThe context class loader strategy to use for managing the CCL when invoking host component methodsstatic final StringWhether the host component should track the bundle invoking component methods -
Method Summary
Modifier and TypeMethodDescriptionSets the strategy to use for context classloader managementSets the bean name of the host componentwithProperty(String name, String value) Sets an arbitrary property to register with the host componentwithTrackBundleEnabled(boolean enabled) Sets whether bundle tracking is enabled
-
Field Details
-
BEAN_NAME
The name of the host component bean, usually the Spring bean identifier- See Also:
-
CONTEXT_CLASS_LOADER_STRATEGY
The context class loader strategy to use for managing the CCL when invoking host component methods- See Also:
-
TRACK_BUNDLE
Whether the host component should track the bundle invoking component methods- See Also:
-
-
Method Details
-
withName
Sets the bean name of the host component- Parameters:
name- The name- Returns:
- The property builder
-
withContextClassLoaderStrategy
Sets the strategy to use for context classloader management- Parameters:
strategy- The strategy to use- Returns:
- The property builder
-
withTrackBundleEnabled
Sets whether bundle tracking is enabled- Parameters:
enabled-trueif tracking should be enabled,falseotherwise- Returns:
- The property builder
-
withProperty
Sets an arbitrary property to register with the host component- Parameters:
name- The property namevalue- The property value- Returns:
- The property builder
-