Class ConsoleApp
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jgrapes.webconsole.examples.consoleapp.ConsoleApp
- All Implemented Interfaces:
Iterable<ComponentType>,Channel,ComponentType,Eligible,Manager
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidonHandlingError(HandlingError event) Log the exception when a handling error is reported.voidstart()Start the application.voidstop()Stop the application.Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setNameMethods inherited from class org.jgrapes.core.internal.ComponentVertex
activeEventPipeline, addHandler, attach, channelReplacements, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGeneratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConsoleApp
public ConsoleApp()Instantiates a new http(s) web console demo.
-
-
Method Details
-
onHandlingError
@Handler(channels=org.jgrapes.core.Channel.class, priority=-10000) public void onHandlingError(HandlingError event) Log the exception when a handling error is reported.- Parameters:
event- the event
-
start
Start the application.- Throws:
Exception- the exception
-
stop
Stop the application. -
main
-