org.hibernate.search.annotations

## Annotation Type Factory

-     @Retention(value=RUNTIME)
       @Target(value=METHOD)
       @Documented
      public @interface Factory

  Marks a method as a factory method for a given type. A factory method is called whenever a new instance of a given type is requested. The factory method is used with a higher priority than a plain no-arg constructor when present.

  Hibernate Search does not support factory methods for all plugable classes. Please check the javadoc of your extension point to know whether `@Factory` is supported.

  Author:
    Emmanuel Bernard

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved