Class AvoidEmptyPolicy

All Implemented Interfaces:
Iterable<ComponentType>, Channel, ComponentType, Eligible, Manager

public class AvoidEmptyPolicy extends Component
  • Constructor Details

    • AvoidEmptyPolicy

      public AvoidEmptyPolicy(Channel componentChannel)
      Creates a new component with its channel set to the given channel.
      Parameters:
      componentChannel -
  • Method Details

    • onConsoleReady

      @Handler public void onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event, org.jgrapes.webconsole.base.ConsoleConnection connection)
      On console ready.
      Parameters:
      event - the event
      connection - the connection
    • onRenderConlet

      @Handler(priority=100) public void onRenderConlet(org.jgrapes.webconsole.base.events.RenderConlet event, org.jgrapes.webconsole.base.ConsoleConnection connection)
      On render conlet.
      Parameters:
      event - the event
      connection - the connection
    • onConsoleConfigured

      @Handler(priority=-100) public void onConsoleConfigured(org.jgrapes.webconsole.base.events.ConsoleConfigured event, org.jgrapes.webconsole.base.ConsoleConnection connection) throws InterruptedException, IOException
      On console configured.
      Parameters:
      event - the event
      connection - the console connection
      Throws:
      InterruptedException - the interrupted exception
      IOException