Class ComponentContext


  • public class ComponentContext
    extends Context
    Context allowing access to the component's connectors.
    • Field Detail

      • componentHelper

        private volatile ComponentHelper componentHelper
        The component helper.
    • Constructor Detail

      • ComponentContext

        public ComponentContext​(ComponentHelper componentHelper)
        Constructor.
        Parameters:
        componentHelper - The component helper.
    • Method Detail

      • createChildContext

        public Context createChildContext()
        Description copied from class: Context
        Creates a protected child context. This is especially useful for new application attached to their parent component, to ensure their isolation from the other applications. By default it creates a new context instance with empty or null properties, except the client and server dispatchers that are wrapped for isolation purpose.
        Overrides:
        createChildContext in class Context
        Returns:
        The child context.
      • getComponentHelper

        protected ComponentHelper getComponentHelper()
        Returns the component helper.
        Returns:
        The component helper.
      • setComponentHelper

        protected void setComponentHelper​(ComponentHelper componentHelper)
        Sets the component helper.
        Parameters:
        componentHelper - The component helper.