All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ro.isdc.wro.util.DestroyableLazyInitializer Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/**
 * Copyright Alex Objelean
 */
package ro.isdc.wro.util;


/**
 * A subclass of {@link LazyInitializer} allows to destroy the created object.
 *
 * @author Alex Objelean
 * @created 24 Oct 2011
 * @since 1.4.2
 */
public abstract class DestroyableLazyInitializer extends LazyInitializer {
  /**
   * Destroy the initialized object. This will trigger the re-initialization when
   * {@link DestroyableLazyInitializer#get()} method is invoked.
   */
  public final void destroy() {
    object = null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy