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.boolean
isEligibleFor
(Object value) Matches the object itself (using identity comparison) or theChannel
class.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, 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
-
Method Details
-
component
Description copied from class:ComponentVertex
Returns the component represented by this node in the tree.- Specified by:
component
in interfaceManager
- Specified by:
component
in classComponentVertex
- Returns:
- the component
-
channel
Description copied from interface:Manager
Returns 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 theChannel
class.- Parameters:
value
- the criterion- Returns:
- true, if is eligible for
- See Also:
-