|
Several of our FieldBridge implementations use an INSTANCE static field to save memory; but when a user explicitly picks a FieldBridge to use we create these via a public no-args contructor.
Looking for the org.hibernate.search.annotations.Factory annotation we can allow the construction to reuse the INSTANCE field and also provide some extra flexibility for custom implementations.
|