Uses of Interface
dev.getelements.elements.sdk.Attributes
Packages that use Attributes
Package
Description
The Guice SDK module is intended for using Guice to build an
Element
based
system.-
Uses of Attributes in dev.getelements.elements.rt
Methods in dev.getelements.elements.rt with parameters of type AttributesModifier and TypeMethodDescriptiondefault ResourceId
ResourceContext.createAttributes
(String module, Path path, Attributes attributes, Object... args) SimpleResourceContext.createAttributes
(String module, Path path, Attributes attributes, Object... args) void
ResourceContext.createAttributesAsync
(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Attributes attributes, Object... args) Creates aResource
asynchronously.void
SimpleResourceContext.createAttributesAsync
(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Attributes attributes, Object... args) default Object
HandlerContext.invokeRetainedHandler
(Attributes attributes, String module, String method, Object... args) Synchronously invokesHandlerContext.invokeRetainedHandlerAsync(Consumer, Consumer, Attributes, String, String, Object...)
blocking until the call returns.void
HandlerContext.invokeRetainedHandlerAsync
(Consumer<Object> success, Consumer<Throwable> failure, Attributes attributes, String module, String method, Object... args) void
SimpleHandlerContext.invokeRetainedHandlerAsync
(Consumer<Object> success, Consumer<Throwable> failure, Attributes attributes, String module, String method, Object... args) default Object
HandlerContext.invokeSingleUseHandler
(Attributes attributes, String module, String method, Object... args) Synchronously invokesHandlerContext.invokeSingleUseHandlerAsync(Consumer, Consumer, Attributes, String, String, Object...)
blocking until the call returns.void
HandlerContext.invokeSingleUseHandlerAsync
(Consumer<Object> success, Consumer<Throwable> failure, Attributes attributes, String module, String method, Object... args) void
SimpleHandlerContext.invokeSingleUseHandlerAsync
(Consumer<Object> success, Consumer<Throwable> failure, Attributes attributes, String module, String method, Object... args) ResourceLoader.load
(String moduleName, Attributes attributes, Object... args) Loads theResource
specified by the supplied module name.RetainedHandlerService.perform
(Consumer<Object> success, Consumer<Throwable> failure, long timeoutDelay, TimeUnit timeoutUnit, String module, Attributes attributes, String method, Object... args) Creates a newResource
using the attributes and the module.SimpleRetainedHandlerService.perform
(Consumer<Object> success, Consumer<Throwable> failure, long timeout, TimeUnit timeoutUnit, String module, Attributes attributes, String method, Object... args) SimpleSingleUseHandlerService.perform
(Consumer<Object> success, Consumer<Throwable> failure, long timeoutDelay, TimeUnit timeoutUnit, String module, Attributes attributes, String method, Object... args) SingleUseHandlerService.perform
(Consumer<Object> success, Consumer<Throwable> failure, long timeoutDelay, TimeUnit timeoutUnit, String module, Attributes attributes, String method, Object... args) Performs an operation against thisSingleUseHandlerService
, reporting either success or failure to the code.void
EventContext.postAsync
(String eventName, Attributes attributes, Object... args) void
EventService.postAsync
(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Registers a newString
and set of consumers to handle the results.void
SimpleEventContext.postAsync
(String eventName, Attributes attributes, Object... args) void
SimpleEventService.postAsync
(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) -
Uses of Attributes in dev.getelements.elements.sdk
Subinterfaces of Attributes in dev.getelements.elements.sdkModifier and TypeInterfaceDescriptioninterface
Represents a set of mutable attributes.Fields in dev.getelements.elements.sdk declared as AttributesModifier and TypeFieldDescriptionstatic final Attributes
Attributes.EMPTY
The emptyAttributes
implementation.Methods in dev.getelements.elements.sdk that return AttributesModifier and TypeMethodDescriptionstatic Attributes
Attributes.emptyAttributes()
ReturnsEMPTY
.Attributes.immutableCopy()
Returns a copy of thisAttributes
as an immutable copy.Methods in dev.getelements.elements.sdk with parameters of type AttributesModifier and TypeMethodDescriptionstatic boolean
Attributes.equals
(Attributes a, Attributes b) Tests if twoAttributes
are equal to each other.static boolean
Attributes.equals
(Attributes a, Object b) Test if the suppliedAttributes
is equal to the otherObject
by first testing if it an instance ofAttributes
as well as ifequals(Attributes, Attributes)
returns true.ElementLoaderFactory.findElementDefinitionRecord
(ClassLoader classLoader, Attributes attributes, Predicate<ElementDefinitionRecord> selector) Finds theElement
name, this will find theElementRecord
associated with it, throwing an exception if it is unable to find theElementDefinition
annotation.ElementLoaderFactory.getElementRecordFromPackage
(Attributes attributes, Package aPackage) Given thePackage
, this will find theElementRecord
associated with it, throwing an exception if it is unable to find theElementDefinition
annotation.default ElementLoader
ElementLoaderFactory.getIsolatedLoader
(Attributes attributes, ClassLoader baseClassLoader, ElementLoaderFactory.ClassLoaderConstructor classLoaderCtor) Scans the classpath, using the suppliedClassLoader
, forElement
instances.ElementLoaderFactory.getIsolatedLoader
(Attributes attributes, ClassLoader baseClassLoader, ElementLoaderFactory.ClassLoaderConstructor classLoaderCtor, Predicate<ElementDefinitionRecord> selector) Scans the classpath, using the suppliedClassLoader
, forElement
instances.static int
Attributes.hashCode
(Attributes attributes) Given a set ofAttributes
, this will determined is hash code.ElementScope.Builder.with
(Attributes attributes) Sets theAttributes
to the scope. -
Uses of Attributes in dev.getelements.elements.sdk.guice
Classes in dev.getelements.elements.sdk.guice that implement AttributesMethods in dev.getelements.elements.sdk.guice that return Attributes -
Uses of Attributes in dev.getelements.elements.sdk.local
Methods in dev.getelements.elements.sdk.local that return AttributesModifier and TypeMethodDescriptionLocalApplicationElementRecord.attributes()
Returns the value of theattributes
record component.Methods in dev.getelements.elements.sdk.local with parameters of type AttributesModifier and TypeMethodDescriptionElementsLocalBuilder.withAttributes
(Attributes attributes) Specifies the system properties as anAttributes
instance.StandardElementsLocalBuilder.withAttributes
(Attributes attributes) ElementsLocalBuilder.withElementNamed
(String applicationNameOrId, String elementName, Attributes attributes) Specifies anElement
to load associated with the supplied package.StandardElementsLocalBuilder.withElementNamed
(String applicationNameOrId, String elementName, Attributes attributes) Constructors in dev.getelements.elements.sdk.local with parameters of type AttributesModifierConstructorDescriptionLocalApplicationElementRecord
(String applicationNameOrId, String elementName, Attributes attributes) Creates an instance of aLocalApplicationElementRecord
record class. -
Uses of Attributes in dev.getelements.elements.sdk.record
Methods in dev.getelements.elements.sdk.record that return AttributesModifier and TypeMethodDescriptionElementRecord.attributes()
Returns the value of theattributes
record component.Constructors in dev.getelements.elements.sdk.record with parameters of type AttributesModifierConstructorDescriptionElementRecord
(ElementType type, ElementDefinitionRecord definition, List<ElementServiceRecord> services, List<ElementEventProducerRecord> producedEvents, List<ElementEventConsumerRecord<?>> consumedEvents, Attributes attributes, List<ElementDefaultAttributeRecord> defaultAttributes, ClassLoader classLoader) Creates an instance of aElementRecord
record class. -
Uses of Attributes in dev.getelements.elements.sdk.spi
Methods in dev.getelements.elements.sdk.spi with parameters of type AttributesModifier and TypeMethodDescriptionDefaultElementLoaderFactory.findElementDefinitionRecord
(ClassLoader classLoader, Attributes attributes, Predicate<ElementDefinitionRecord> selector) DefaultElementLoaderFactory.getElementRecordFromPackage
(Attributes attributes, Package aPackage) DefaultElementLoaderFactory.getIsolatedLoader
(Attributes attributes, ClassLoader baseClassLoader, ElementLoaderFactory.ClassLoaderConstructor classLoaderCtor, Predicate<ElementDefinitionRecord> selector) DefaultElementScope.newInheritedScope
(String name, Attributes attributes) Creates a newDefaultElementScope
which inherits its properties from this scope.DefaultElementScopeBuilder.with
(Attributes attributes) Constructors in dev.getelements.elements.sdk.spi with parameters of type AttributesModifierConstructorDescriptionDefaultElementScopeBuilder
(Attributes base, ReentrantThreadLocal<DefaultElementScope> reentrantThreadLocal) -
Uses of Attributes in dev.getelements.elements.sdk.spi.guice
Methods in dev.getelements.elements.sdk.spi.guice with parameters of type Attributes -
Uses of Attributes in dev.getelements.elements.sdk.util
Classes in dev.getelements.elements.sdk.util that implement AttributesModifier and TypeClassDescriptionclass
A type ofAttributes
which is immutable.final record
A type ofAttributes
that inherits from a base set of attributes.final record
A set of attributes that inherits from a base set of attributes.class
An instance ofAttributes
backed by aProperties
instance.final record
Simple implementation ofAttributes
backed by aMap<String,
.Object> Methods in dev.getelements.elements.sdk.util that return AttributesModifier and TypeMethodDescriptionInheritedAttributes.base()
Returns the value of thebase
record component.InheritedMutableAttributes.base()
Returns the value of thebase
record component.InheritedAttributes.current()
Returns the value of thecurrent
record component.ImmutableAttributes.immutableCopy()
InheritedAttributes.immutableCopy()
InheritedMutableAttributes.immutableCopy()
PropertiesAttributes.immutableCopy()
SimpleAttributes.immutableCopy()
Methods in dev.getelements.elements.sdk.util with parameters of type AttributesModifier and TypeMethodDescriptionstatic ImmutableAttributes
ImmutableAttributes.copyOf
(Attributes attributes) Takes a copy of the suppliedAttributes
and returns the result.static PropertiesAttributes
PropertiesAttributes.copyOf
(Attributes attributes) Takes a copy of the suppliedAttributes
and returns a newPropertiesAttributes
.SimpleAttributes.Builder.from
(Attributes attributes) Copies all values from anotherAttributes
into thisSimpleAttributes.Builder
.SimpleAttributes.Builder.from
(Attributes attributes, BiPredicate<String, Object> filter) Copies all values from anotherAttributes
into thisSimpleAttributes.Builder
, filtering out attributes based on the suppliedBiPredicate
.InheritedAttributes.newDerivativeFrom
(Attributes attributes) Derives a new set of attributes from the current set of attributes.InheritedMutableAttributes.newDerivativeFrom
(Attributes attributes) Derives a new set of attributes from the current set of attributes.ElementScopes.Builder.withAttributes
(Attributes attributes) Sets theAttributes
to assign to the scope.static InheritedAttributes
InheritedAttributes.withAttributes
(Attributes current) Creates anInheritedAttributes
object that inherits from the given attributes.Constructors in dev.getelements.elements.sdk.util with parameters of type AttributesModifierConstructorDescriptionInheritedAttributes
(Attributes base, Attributes current) Creates an instance of aInheritedAttributes
record class.InheritedMutableAttributes
(Attributes base, MutableAttributes current) Creates an instance of aInheritedMutableAttributes
record class. -
Uses of Attributes in dev.getelements.elements.servlet
Classes in dev.getelements.elements.servlet that implement AttributesMethods in dev.getelements.elements.servlet that return Attributes