Annotation Interface OsgiServiceFactory


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface OsgiServiceFactory
This annotation can be added to your @Bean method in @Configuration class, or the bean implementation class. By convention, in Jira configuration classes this annotation must be added to each bean method. When added to the factory method, the bean is registered as OSGi ServiceFactory of the specified type. Make sure that the factory method returns an instance of the specified type, or the world will blow up.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The type which is produced by this factory.
  • Element Details

    • value

      Class<?> value
      The type which is produced by this factory.
      Returns:
      the type