Uses of Interface
org.jgrapes.core.ComponentType
Package
Description
Defines the interfaces and classes that provide
the core functionality of the JGrapes event driven component framework.
Annotations used by the library.
Core events.
Classes implementing the public API of the library.
Provides components for building a HTTP server based on the
core and IO components.
Adds a special annotation for methods that handle
HTTP request events.
Provides a base component for generating template based responses
to HTTP requests.
I/O related components built on top of the core package.
Classes for managing processes.
Utility classes, mainly for adapted buffers to specific needs.
Components for handling mail.
Networking related I/O classes.
Utility components that are too small to deserve
individual libraries/projects.
-
Uses of ComponentType in org.jgrapes.core
Modifier and TypeClassDescriptionclass
This class can be used as base class for implementing a component.class
ComponentCollector<F extends ComponentFactory>
Deprecated.Modifier and TypeMethodDescription<T extends ComponentType>
TManager.attach
(T child) Attaches the given component node (or complete tree) as a child to the component managed by this manager.Modifier and TypeMethodDescriptionManager.component()
Returns the component managed by this manager.default ComponentType
ComponentFactory.create()
Creates a new component with its channel set to itself.default ComponentType
Creates a new component with its channel set to the given channel.Manager.detach()
Detaches the component managed by this manager (with its children, if any) from the component tree that it currently belongs to.Manager.parent()
Returns the parent of the component managed by this manager.Manager.root()
Returns the root of the tree the component managed by this manager belongs to.Sets the (optional) name of the component.static ComponentType
ComponentFactory.setStandardProperties
(ComponentType component, Map<?, ?> properties) Assigns standard properties from the given properties to the component.Modifier and TypeMethodDescriptionManager.children()
Returns the child components of the component managed by this manager as unmodifiable list.Class
<? extends ComponentType> ComponentFactory.componentType()
Returns the type of the components created by this factory.Creates a new component with its channel set to the given channel using the given additional properties.Manager.iterator()
Returns an iterator that visits the components of the component subtree that has this node as root.default Stream
<ComponentType> Manager.stream()
Returns the components visited when traversing the tree that starts with this component.Modifier and TypeMethodDescriptionstatic Manager
Components.manager
(ComponentType component) Returns a component’s manager.static Manager
Components.manager
(ComponentType component, Channel componentChannel) Returns a component’s manager likeComponents.manager(ComponentType)
.static ComponentType
ComponentFactory.setStandardProperties
(ComponentType component, Map<?, ?> properties) Assigns standard properties from the given properties to the component.static void
Components.start
(ComponentType application) -
Uses of ComponentType in org.jgrapes.core.annotation
Modifier and TypeMethodDescriptionstatic void
Handler.Evaluator.add
(ComponentType component, String method, Object channelValue) Add a handler likeHandler.Evaluator.add(ComponentType, String, Object, Object, int)
but take the values for event and priority from the annotation.static void
Handler.Evaluator.add
(ComponentType component, String method, Object eventValue, Object channelValue, int priority) Adds the given method of the given component as a dynamic handler for a specific event and channel.Handler.Evaluator.scope
(ComponentType component, Method method, HandlerDefinition.ChannelReplacements channelReplacements) HandlerDefinition.Evaluator.scope
(ComponentType component, Method method, HandlerDefinition.ChannelReplacements channelReplacements) Returns the information about the events and channels handled by the handler that annotates the given method of the given comonent as aHandlerScope
object. -
Uses of ComponentType in org.jgrapes.core.events
Modifier and TypeMethodDescriptionAttached.node()
Return the node that has been attached.Detached.node()
Attached.parent()
Return the parent component.Detached.parent()
ModifierConstructorDescriptionAttached
(ComponentType node, ComponentType parent) Creates a new event.Detached
(ComponentType node, ComponentType parent) Creates a new event. -
Uses of ComponentType in org.jgrapes.core.internal
Modifier and TypeClassDescriptionclass
Helper class for simulating event handlers.class
A fallback error printer.Modifier and TypeMethodDescriptionComponentProxy.component()
abstract ComponentType
ComponentVertex.component()
Returns the component represented by this node in the tree.ComponentVertex.detach()
ComponentVertex.parent()
ComponentVertex.root()
Modifier and TypeMethodDescriptionstatic ComponentVertex
ComponentVertex.componentVertex
(ComponentType component, Channel componentChannel) Return the component node for a given component. -
Uses of ComponentType in org.jgrapes.http
Modifier and TypeClassDescriptionclass
A converter component that receives and sends web application layer messages and byte buffers on associated network channels.class
A converter component that receives and sends byte buffers on a network channel and web application layer messages onIOSubchannel
s of its channel.class
A in memory session manager.class
A component that attempts to derive information about language preferences from requests in the specified scope (usually “/”) and make them available as aLanguageSelector.Selection
object associated with the request event usingSelection.class
as association identifier.class
A base class for session managers.class
A dispatcher for requests for static content, usually files. -
Uses of ComponentType in org.jgrapes.http.annotation
Modifier and TypeMethodDescriptionstatic void
RequestHandler.Evaluator.add
(ComponentType component, String method, String pattern) Adds the given method of the given component as a dynamic handler for a specific pattern.static void
RequestHandler.Evaluator.add
(ComponentType component, String method, String pattern, int priority) Adds the given method of the given component as a dynamic handler for a specific pattern with the specified priority.RequestHandler.Evaluator.scope
(ComponentType component, Method method, HandlerDefinition.ChannelReplacements channelReplacements) ModifierConstructorDescriptionScope
(ComponentType component, Method method, RequestHandler annotation, Map<Class<? extends Channel>, Object[]> channelReplacements, String pattern) Instantiates a new scope. -
Uses of ComponentType in org.jgrapes.http.freemarker
Modifier and TypeClassDescriptionclass
A base class for components that generate responses to HTTP requests which are based on a FreeMarker template. -
Uses of ComponentType in org.jgrapes.io
Modifier and TypeClassDescriptionclass
A component that reads from or writes to a file.class
A component that watches for new input on anInputStream
.class
A helper component that provides the central hub for non blocking I/O components.class
-
Uses of ComponentType in org.jgrapes.io.process
Modifier and TypeClassDescriptionclass
Provides a component that executes processes. -
Uses of ComponentType in org.jgrapes.io.util
Modifier and TypeClassDescriptionclass
ConnectionManager<C extends ConnectionManager<C>.Connection>
A base class for components that manageSubchannel
s representing some kind of connection to a server or service. -
Uses of ComponentType in org.jgrapes.mail
Modifier and TypeClassDescriptionclass
MailConnectionManager<C extends MailConnectionManager<C,
O>.AbstractMailChannel, O extends Event<?>> Provides a base class for mail components using connections.class
A component that opens mail stores and monitors mail folders for mails.class
A component that sends mail using a system wide or user specific connection. -
Uses of ComponentType in org.jgrapes.net
Modifier and TypeClassDescriptionclass
Provides a base class for theSocketServer
and theSocketConnector
.class
A component that reads from or write to a socket connection.class
Provides a socket server.class
A component that receives and sends byte buffers on an encrypted channel and sends and receives the corresponding decrypted data on a plain channel. -
Uses of ComponentType in org.jgrapes.util
Modifier and TypeClassDescriptionclass
ComponentCollector<F extends ComponentFactory>
A component that collects all component factory services of a given type and uses each to create one or more components that are then attached to the component collector instance.class
Provides child components dynamically usingComponentFactory
s.class
A base class for configuration stores.class
A component that watches paths in the file system for changes and sends events if such changes occur.class
This component provides a store for an application’s configuration backed by a JSON file.class
A base class for configuration stored based on the night config library.class
This component provides a store for an application’s configuration backed by the JavaPreferences
.class
This component provides a store for an application’s configuration backed by a TOML file.class
This component provides a store for an application’s configuration backed by a YAML file.
ComponentCollector
.