Class ChenileServiceDefinition

java.lang.Object
org.chenile.core.model.ChenileServiceDefinition

public class ChenileServiceDefinition extends Object
Defines a chenile service. A chenile service is more than its implementation. It is a construct that exposes an interface and an implementation. A service comes equipped with policies that are enforced by specific last mile interceptors. Please see the details in Chenile Service Definition.
  • Field Details

  • Constructor Details

    • ChenileServiceDefinition

      public ChenileServiceDefinition()
  • Method Details

    • getInterfaceClass

      public Class<?> getInterfaceClass()
    • setInterfaceClass

      public void setInterfaceClass(Class<?> clazz)
    • getBodyTypeSelectorComponentName

      public String getBodyTypeSelectorComponentName()
    • getMockServiceReference

      public Object getMockServiceReference()
    • setBodyTypeSelectorComponentName

      public void setBodyTypeSelectorComponentName(String bodyTypeSelectorComponentName)
    • setBodyTypeSelector

      public void setBodyTypeSelector(Command<ChenileExchange> bodyTypeSelector)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getOperations

      public List<OperationDefinition> getOperations()
    • setOperations

      public void setOperations(List<OperationDefinition> operations)
    • getInterceptorCommands

      public List<Command<ChenileExchange>> getInterceptorCommands()
    • getInterceptorComponentNames

      public List<String> getInterceptorComponentNames()
    • setInterceptorComponentNames

      public void setInterceptorComponentNames(List<String> interceptorComponentNames)
    • setInterceptorCommands

      public void setInterceptorCommands(List<Command<ChenileExchange>> interceptorCommands)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getServiceReference

      public Object getServiceReference()
    • setServiceReference

      public void setServiceReference(Object serviceReference)
    • getBodyTypeSelector

      public Command<ChenileExchange> getBodyTypeSelector()
    • getModuleName

      public String getModuleName()
    • setModuleName

      public void setModuleName(String moduleName)
    • getClientInterceptorComponentNames

      public List<String> getClientInterceptorComponentNames()
    • setClientInterceptorComponentNames

      public void setClientInterceptorComponentNames(List<String> clientInterceptorComponentNames)
    • getClientInterceptorCommands

      public List<Command<ChenileExchange>> getClientInterceptorCommands()
    • setClientInterceptorCommands

      public void setClientInterceptorCommands(List<Command<ChenileExchange>> clientInterceptorCommands)
    • getMockName

      public String getMockName()
    • setMockName

      public void setMockName(String name)
    • setMockServiceReference

      public void setMockServiceReference(Object bean)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getHealthChecker

      public HealthChecker getHealthChecker()
    • setHealthChecker

      public void setHealthChecker(HealthChecker healthChecker)
    • getHealthCheckerName

      public String getHealthCheckerName()
    • setHealthCheckerName

      public void setHealthCheckerName(String healthCheckerName)
    • putExtension

      public void putExtension(String key, Object value)
    • getExtension

      @Deprecated public Object getExtension(String key)
      Deprecated.
    • getExtensions

      @Deprecated public Map<String,Object> getExtensions()
      Deprecated.
    • putExtensionAsAnnotation

      public void putExtensionAsAnnotation(Class<? extends Annotation> klass, Annotation annotation)
    • getExtensionAsAnnotation

      public <T extends Annotation> T getExtensionAsAnnotation(Class<T> klass)
    • getTrajectoryOverrides

      public Map<String,TrajectoryOverride> getTrajectoryOverrides()
    • setTrajectoryOverrides

      public void setTrajectoryOverrides(Map<String,TrajectoryOverride> trajectoryOverrides)