Interface TransformersSubRegistration

All Known Implementing Classes:
TransformerRegistry.TransformersSubRegistrationImpl

public interface TransformersSubRegistration
Registration for subsystem specific operation transformers.
Author:
Emanuel Muckenhuber
  • Field Details

    • COMMON_OPERATIONS

      static final String[] COMMON_OPERATIONS
  • Method Details

    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element)
      Register a sub resource.
      Parameters:
      element - the path element
      Returns:
      the sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, boolean discardByDefault)
      Register a sub resource. If discardByDefault is set to true, both operations and resource transformations are going to discard operations addressed to this resource.
      Parameters:
      element - the path element
      discardByDefault - don't forward operations by default
      Returns:
      the sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, ResourceTransformer resourceTransformer)
      register a sub resource.
      Parameters:
      element - the path element
      resourceTransformer - the resource transformer
      Returns:
      the transformers sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, OperationTransformer operationTransformer)
      Register a sub resource.
      Parameters:
      element - the path element
      operationTransformer - the default operation transformer
      Returns:
      the sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, ResourceTransformer resourceTransformer, OperationTransformer operationTransformer)
      Register a sub resource.
      Parameters:
      element - the path element
      resourceTransformer - the resource transformer
      operationTransformer - the default operation transformer
      Returns:
      the transformers sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, PathAddressTransformer pathAddressTransformer, ResourceTransformer resourceTransformer, OperationTransformer operationTransformer)
      Register a sub resource.
      Parameters:
      element - the path element
      pathAddressTransformer - the path transformation
      resourceTransformer - the resource transformer
      operationTransformer - the default operation transformer
      Returns:
      the transformers sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, PathAddressTransformer pathAddressTransformer, ResourceTransformer resourceTransformer, OperationTransformer operationTransformer, boolean inherited, boolean placeholder)
      Register a sub resource.
      Parameters:
      element - the path element
      pathAddressTransformer - the path transformation
      resourceTransformer - the resource transformer
      operationTransformer - the default operation transformer
      inherited - true to make the default operation transformer inherited
      placeholder - true if the transformers are placeholders and are responsible for resolving the children
      Returns:
      the transformers sub registration
    • registerSubResource

      TransformersSubRegistration registerSubResource(PathElement element, CombinedTransformer transformer)
      Register a sub resource.
      Parameters:
      element - the path element
      transformer - the resource and operation transformer
      Returns:
      the transformers sub registration
    • discardOperations

      void discardOperations(String... operationNames)
      Don't forward and just discard the operation.
      Parameters:
      operationNames - the operation names
    • registerOperationTransformer

      void registerOperationTransformer(String operationName, OperationTransformer transformer)
      Register an operation transformer.
      Parameters:
      operationName - the operation name
      transformer - the operation transformer