Interface Declarable

    • Method Summary

      All Methods Instance Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void init​(java.util.Properties props)
      Deprecated.
      as of Geode 1.5 implement initialize instead.
      default void initialize​(Cache cache, java.util.Properties properties)
      Initializes a user-defined object, owned by the given cache, using the given properties.
    • Method Detail

      • init

        @Deprecated
        default void init​(java.util.Properties props)
        Deprecated.
        as of Geode 1.5 implement initialize instead.
        Initializes a user-defined object using the given properties. Note that any uncaught exception thrown by this method will cause the Cache initialization to fail.
        Parameters:
        props - Contains the parameters declared in the declarative xml file.
        Throws:
        java.lang.IllegalArgumentException - If one of the configuration options in props is illegal or malformed.
      • initialize

        default void initialize​(Cache cache,
                                java.util.Properties properties)
        Initializes a user-defined object, owned by the given cache, using the given properties. Note that any uncaught exception thrown by this method will cause the Cache initialization to fail. Note that if this method is implemented then the deprecated init method should not be implemented. The product will call both methods assuming that only one will have a non-default implementation.

        Note that this method is only called when a Cache is created using gfsh cluster configuration or a declarative XML file. It will not be called when a Cache is created without XML using the Java APIs directly.

        Parameters:
        cache - the cache that owns this declarable
        properties - Contains the parameters declared in the declarative xml file.
        Throws:
        java.lang.IllegalArgumentException - should be thrown if properties contains something unexpected.
        Since:
        Geode 1.5