Uses of Interface
org.jgrapes.core.ComponentType
Packages that use 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
Classes in org.jgrapes.core that implement ComponentTypeModifier and TypeClassDescriptionclassThis class can be used as base class for implementing a component.classComponentCollector<F extends ComponentFactory>Deprecated.Methods in org.jgrapes.core with type parameters of type ComponentTypeModifier 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.Methods in org.jgrapes.core that return ComponentTypeModifier and TypeMethodDescriptionManager.component()Returns the component managed by this manager.default ComponentTypeComponentFactory.create()Creates a new component with its channel set to itself.default ComponentTypeCreates 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 ComponentTypeComponentFactory.setStandardProperties(ComponentType component, Map<?, ?> properties) Assigns standard properties from the given properties to the component.Methods in org.jgrapes.core that return types with arguments of type ComponentTypeModifier 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.Methods in org.jgrapes.core with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic ManagerComponents.manager(ComponentType component) Returns a component’s manager.static ManagerComponents.manager(ComponentType component, Channel componentChannel) Returns a component’s manager likeComponents.manager(ComponentType).static ComponentTypeComponentFactory.setStandardProperties(ComponentType component, Map<?, ?> properties) Assigns standard properties from the given properties to the component.static voidComponents.start(ComponentType application) -
Uses of ComponentType in org.jgrapes.core.annotation
Methods in org.jgrapes.core.annotation with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic voidHandler.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 voidHandler.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 aHandlerScopeobject. -
Uses of ComponentType in org.jgrapes.core.events
Methods in org.jgrapes.core.events that return ComponentTypeModifier and TypeMethodDescriptionAttached.node()Return the node that has been attached.Detached.node()Attached.parent()Return the parent component.Detached.parent()Constructors in org.jgrapes.core.events with parameters of type ComponentTypeModifierConstructorDescriptionAttached(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
Classes in org.jgrapes.core.internal that implement ComponentTypeModifier and TypeClassDescriptionclassHelper class for simulating event handlers.classA fallback error printer.Methods in org.jgrapes.core.internal with type parameters of type ComponentTypeMethods in org.jgrapes.core.internal that return ComponentTypeModifier and TypeMethodDescriptionComponentProxy.component()abstract ComponentTypeComponentVertex.component()Returns the component represented by this node in the tree.ComponentVertex.detach()ComponentVertex.parent()ComponentVertex.root()Methods in org.jgrapes.core.internal that return types with arguments of type ComponentTypeMethods in org.jgrapes.core.internal with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic ComponentVertexComponentVertex.componentVertex(ComponentType component, Channel componentChannel) Return the component node for a given component. -
Uses of ComponentType in org.jgrapes.http
Classes in org.jgrapes.http that implement ComponentTypeModifier and TypeClassDescriptionclassA converter component that receives and sends web application layer messages and byte buffers on associated network channels.classA converter component that receives and sends byte buffers on a network channel and web application layer messages onIOSubchannels of its channel.classA in memory session manager.classA component that attempts to derive information about language preferences from requests in the specified scope (usually “/”) and make them available as aLanguageSelector.Selectionobject associated with the request event usingSelection.classas association identifier.classA base class for session managers.classA dispatcher for requests for static content, usually files. -
Uses of ComponentType in org.jgrapes.http.annotation
Methods in org.jgrapes.http.annotation with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic voidRequestHandler.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 voidRequestHandler.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) Constructors in org.jgrapes.http.annotation with parameters of type ComponentTypeModifierConstructorDescriptionScope(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
Classes in org.jgrapes.http.freemarker that implement ComponentTypeModifier and TypeClassDescriptionclassA base class for components that generate responses to HTTP requests which are based on a FreeMarker template. -
Uses of ComponentType in org.jgrapes.io
Classes in org.jgrapes.io that implement ComponentTypeModifier and TypeClassDescriptionclassA component that reads from or writes to a file.classA component that watches for new input on anInputStream.classA helper component that provides the central hub for non blocking I/O components.class -
Uses of ComponentType in org.jgrapes.io.process
Classes in org.jgrapes.io.process that implement ComponentTypeModifier and TypeClassDescriptionclassProvides a component that executes processes. -
Uses of ComponentType in org.jgrapes.io.util
Classes in org.jgrapes.io.util that implement ComponentTypeModifier and TypeClassDescriptionclassConnectionManager<C extends ConnectionManager<C>.Connection>A base class for components that manageSubchannels representing some kind of connection to a server or service. -
Uses of ComponentType in org.jgrapes.mail
Classes in org.jgrapes.mail that implement ComponentTypeModifier and TypeClassDescriptionclassMailConnectionManager<C extends MailConnectionManager<C,O>.AbstractMailChannel, O extends Event<?>> Provides a base class for mail components using connections.classA component that opens mail stores and monitors mail folders for mails.classA component that sends mail using a system wide or user specific connection. -
Uses of ComponentType in org.jgrapes.net
Classes in org.jgrapes.net that implement ComponentTypeModifier and TypeClassDescriptionclassProvides a base class for theSocketServerand theSocketConnector.classA component that reads from or write to a socket connection.classProvides a socket server.classA 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
Classes in org.jgrapes.util that implement ComponentTypeModifier and TypeClassDescriptionclassComponentCollector<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.classProvides child components dynamically usingComponentFactorys.classA base class for configuration stores.classA component that watches paths in the file system for changes and sends events if such changes occur.classThis component provides a store for an application’s configuration backed by a JSON file.classA base class for configuration stored based on the night config library.classThis component provides a store for an application’s configuration backed by the JavaPreferences.classThis component provides a store for an application’s configuration backed by a TOML file.classThis component provides a store for an application’s configuration backed by a YAML file.
ComponentCollector.