FactoryType (Apache CXF JavaDoc 3.6.11 API)

Package org.apache.cxf.annotations

## Annotation Type FactoryType

-     @Documented
      @Retention(RUNTIME)
      @Target(TYPE)
      @Inherited
      public @interface FactoryType

  Defines the factory used for the service. Either use the factoryClass attribute to define your own factory or use one of the "value" convenience enums.

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `String[]` | `args` |
    `Class<? extends Factory>` | `factoryClass` | The class for the factory.
    `FactoryType.Type` | `value` |

- - ### Element Detail

    - #### value

          FactoryType.Type value

      Default:
        org.apache.cxf.annotations.FactoryType.Type.Singleton

  - - #### args

          String[] args

      Default:
        {}

  - - #### factoryClass

          Class<? extends Factory> factoryClass

      The class for the factory. It MUST have a constructor that takes two arguments: 1) The Class for the service 2) String[] of the args from above
      Default:
        org.apache.cxf.annotations.FactoryType.DEFAULT.class