Class DefaultEndpointFactory

java.lang.Object
org.citrusframework.endpoint.DefaultEndpointFactory
All Implemented Interfaces:
org.citrusframework.common.ShutdownPhase, org.citrusframework.endpoint.EndpointFactory

public class DefaultEndpointFactory extends Object implements org.citrusframework.endpoint.EndpointFactory
Default endpoint factory implementation uses registered endpoint components in Spring application context to create endpoint from given endpoint uri. If endpoint bean name is given factory directly creates from application context. If endpoint uri is given factory tries to find proper endpoint component in application context and in default endpoint component configuration.

Default endpoint components are listed in property file reference where key is the component name and value is the fully qualified class name of the implementing endpoint component class.

Since:
1.4.1
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.citrusframework.endpoint.Endpoint
    create(String endpointName, Annotation endpointConfig, org.citrusframework.context.TestContext context)
     
    org.citrusframework.endpoint.Endpoint
    create(String endpointName, org.citrusframework.annotations.CitrusEndpoint endpointConfig, Class<?> endpointType, org.citrusframework.context.TestContext context)
     
    org.citrusframework.endpoint.Endpoint
    create(String uri, org.citrusframework.context.TestContext context)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultEndpointFactory

      public DefaultEndpointFactory()
  • Method Details

    • create

      public org.citrusframework.endpoint.Endpoint create(String endpointName, Annotation endpointConfig, org.citrusframework.context.TestContext context)
      Specified by:
      create in interface org.citrusframework.endpoint.EndpointFactory
    • create

      public org.citrusframework.endpoint.Endpoint create(String endpointName, org.citrusframework.annotations.CitrusEndpoint endpointConfig, Class<?> endpointType, org.citrusframework.context.TestContext context)
      Specified by:
      create in interface org.citrusframework.endpoint.EndpointFactory
    • create

      public org.citrusframework.endpoint.Endpoint create(String uri, org.citrusframework.context.TestContext context)
      Specified by:
      create in interface org.citrusframework.endpoint.EndpointFactory
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.citrusframework.common.ShutdownPhase