Class ObjectHolder.SingletonHolder<C extends Serializable,​V>

    • Method Detail

      • getOrCreate

        @Nonnull
        public V getOrCreate​(@Nonnull
                             C config)
        Description copied from interface: ObjectHolder
        Retrieves the instance associated with given configuration and if necessary creates ones.
        Specified by:
        getOrCreate in interface ObjectHolder<C extends Serializable,​V>
        Parameters:
        config - the configuration for the instance.
        Returns:
        the instance associated with the holder.