Interface ResourceDescriptor

    • Method Detail

      • stream

        static <T,​P extends Supplier<T>> Stream<T> stream​(Collection<P> providers)
        Convenience method that exposes a collection of Suppliers as a stream of their supplied values.
        Type Parameters:
        T - the supplied value type
        P - the provider type
        Returns:
        a stream of attribute definitions.
      • getResourceDescriptionResolver

        ResourceDescriptionResolver getResourceDescriptionResolver()
        The description resolver for the operation.
        Returns:
        a description resolver
      • getResourceCapabilityReferences

        default Set<ResourceCapabilityReferenceRecorder<?>> getResourceCapabilityReferences()
        Returns a mapping of capability references to an ancestor resource.
        Returns:
        a tuple of capability references and requirement resolvers.
      • getResourceOperationTransformation

        default UnaryOperator<OperationStepHandler> getResourceOperationTransformation()
        Returns a transformer to be applied to all operations that operate on an existing resource. This is typically used to adapt legacy operations to conform to the current version of the model.
        Returns:
        an operation handler transformer.
      • getAttributes

        default Iterable<AttributeDefinition> getAttributes()
        Attributes of the the resource affecting runtime.
        Returns:
        a collection of attributes
      • getCapabilities

        default Set<RuntimeCapability<?>> getCapabilities()
        The capabilities provided by this resource
        Returns:
        a set of capabilities
      • getAddOperationTransformation

        default UnaryOperator<OperationStepHandler> getAddOperationTransformation()
        Returns a transformer for the add operation handler. This is typically used to adapt legacy operations to conform to the current version of the model.
        Returns:
        an operation handler transformer.
      • getAddOperationRestartFlag

        default OperationEntry.Flag getAddOperationRestartFlag()
        Returns the restart flag for the "add"} operation of this resource.
        Returns:
        an operation flag
      • getRemoveOperationRestartFlag

        default OperationEntry.Flag getRemoveOperationRestartFlag()
        Returns the restart flag for the "remove" operation of this resource.
        Returns:
        an operation flag