Class FindServiceLayer


public class FindServiceLayer extends ServiceLayerDecorator
Allows the use of a very short operation name for the find method. This also avoids the need to introduce special-case code for FindRequest into RequestFactoryInterfaceValidator.
  • Constructor Details

    • FindServiceLayer

      public FindServiceLayer()
  • Method Details

    • resolveDomainMethod

      public Method resolveDomainMethod(String operation)
      Description copied from class: ServiceLayer
      Return the domain service method associated with a RequestContext method declaration. The requestContextMethod will have been previously resolved by
      invalid reference
      #resolveRequestContextMethod(String, String)
      .
      Overrides:
      resolveDomainMethod in class ServiceLayerDecorator
      Returns:
      the domain service method that should be invoked
    • resolveRequestContext

      public Class<? extends RequestContext> resolveRequestContext(String operation)
      Description copied from class: ServiceLayer
      Find a RequestContext that should be used to fulfill the requested operation.
      Overrides:
      resolveRequestContext in class ServiceLayerDecorator
      Parameters:
      operation - the operation
      Returns:
      the RequestContext or null if no RequestContext exists that can fulfill the operation
    • resolveRequestContextMethod

      public Method resolveRequestContextMethod(String operation)
      Description copied from class: ServiceLayer
      Find a RequestContext method declaration by name.
      Overrides:
      resolveRequestContextMethod in class ServiceLayerDecorator
      Parameters:
      operation - the operation's name
      Returns:
      the method declaration, or null if the method does not exist