Class SimpleResourceRegistry.RegistryValue

    • Method Detail

      • getResource

        public Object getResource()
        Return the registered resource.
        Returns:
        the registered resource
      • dispose

        public void dispose()
        Invoked when all resources owned by the implementer can safely be released.

        Once disposed of the object should no longer be considered to be usable.

        Note the Disposable interface is compatible with try-with-resources which will automatically invoke this method.

        Specified by:
        dispose in interface Disposable