Class ConcurrentAuthorityFactory.ShutdownHook<DAO extends GeodeticAuthorityFactory>

java.lang.Object
java.lang.ref.Reference<ConcurrentAuthorityFactory<DAO>>
java.lang.ref.PhantomReference<ConcurrentAuthorityFactory<DAO>>
org.apache.sis.referencing.factory.ConcurrentAuthorityFactory.ShutdownHook<DAO>
All Implemented Interfaces:
Callable<Object>, Disposable
Enclosing class:
ConcurrentAuthorityFactory<DAO extends GeodeticAuthorityFactory>

private static final class ConcurrentAuthorityFactory.ShutdownHook<DAO extends GeodeticAuthorityFactory> extends PhantomReference<ConcurrentAuthorityFactory<DAO>> implements Disposable, Callable<Object>
A hook to be executed either when the ConcurrentAuthorityFactory is collected by the garbage collector, when the Java Virtual Machine is shutdown, or when the module is uninstalled by the OSGi or Servlet container.

Do not keep reference to the enclosing factory - in particular, this class must not be static - otherwise the factory would never been garbage collected.