Class HazelcastObjectExtractionConfiguration

java.lang.Object
com.hazelcast.spring.HazelcastObjectExtractionConfiguration

@Import(HazelcastExposeObjectRegistrar.class) @Configuration @PrivateApi public class HazelcastObjectExtractionConfiguration extends Object
Configuration used by ExposeHazelcastObjects to dynamically register all Hazelcast objects as Spring beans.

Initialization proceeds in three stages:

  1. The static factory post-processor installs HazelcastLazyDependencyResolver, without obtaining any configuration or member beans. Bean post-processors, including property binding, are not yet installed.
  2. During normal bean initialization, BeanExporterPostProcessor reads an initialized configuration or member and registers lazy object definitions. This allows configuration properties to be bound first.
  3. On first use, an exported definition invokes BeanCreator to select a member and retrieve the object. If a consumer uses its lazy dependency before stage two has run, the resolver initializes configuration/member beans through Spring's normal lifecycle and retries the lookup.
Since:
5.6
  • Constructor Details

    • HazelcastObjectExtractionConfiguration

      public HazelcastObjectExtractionConfiguration()
  • Method Details

    • registeredTypesOfBeans

      @Nonnull public Set<Class<?>> registeredTypesOfBeans()