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 Details

    • BEAN_NAME

      static final String BEAN_NAME
      The name of the host component bean, usually the Spring bean identifier
      See Also:
    • CONTEXT_CLASS_LOADER_STRATEGY

      static final String CONTEXT_CLASS_LOADER_STRATEGY
      The context class loader strategy to use for managing the CCL when invoking host component methods
      See Also:
    • TRACK_BUNDLE

      static final String TRACK_BUNDLE
      Whether the host component should track the bundle invoking component methods
      See Also:
  • Method Details

    • withName

      PropertyBuilder withName(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
    • withTrackBundleEnabled

      PropertyBuilder withTrackBundleEnabled(boolean enabled)
      Sets whether bundle tracking is enabled
      Parameters:
      enabled - true if tracking should be enabled, false otherwise
      Returns:
      The property builder
    • withProperty

      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