Package org.jgrapes.core.internal
Class ComponentProxy
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.internal.ComponentProxy
- All Implemented Interfaces:
Iterable<ComponentType>,Channel,Eligible,Manager
The ComponentProxy is a special ComponentVertex that references the
object implementing the Component interface (instead of being
its base class).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the channel of the component managed by this manager.Returns the component represented by this node in the tree.Return the object itself as value.booleanisEligibleFor(Object value) Matches the object itself (using identity comparison) or theChannelclass.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, setName, 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
-
Method Details
-
component
Description copied from class:ComponentVertexReturns the component represented by this node in the tree.- Specified by:
componentin interfaceManager- Specified by:
componentin classComponentVertex- Returns:
- the component
-
channel
Description copied from interface:ManagerReturns the channel of the component managed by this manager.- Returns:
- the channel that the component’s
handlers listen on by default and that
Manager.fire(Event, Channel...)sends the event to
-
defaultCriterion
Return the object itself as value.- Returns:
- the criterion
-
isEligibleFor
Matches the object itself (using identity comparison) or theChannelclass.- Parameters:
value- the criterion- Returns:
- true, if is eligible for
- See Also:
-