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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
onHandlingError
(HandlingError event) Log the exception when a handling error is reported.void
start()
Start the application.void
stop()
Stop the application.Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setName
Methods 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, unregisterAsGenerator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-