Class InstanceHolder

java.lang.Object
com.saperion.rmi.InstanceHolder

public class InstanceHolder extends Object
The Class InstanceHolder.
  • Constructor Details

    • InstanceHolder

      public InstanceHolder()
  • Method Details

    • put

      public static <T> void put(T instance, Class<T> key)
      Put.
      Type Parameters:
      T - the generic type
      Parameters:
      instance - the instance
      key - the key
    • contains

      public static <T> boolean contains(Class<T> key)
      Contains.
      Type Parameters:
      T - the generic type
      Parameters:
      key - the key
      Returns:
      true, if successful
    • get

      public static <T> T get(Class<T> key)
      Gets the.
      Type Parameters:
      T - the generic type
      Parameters:
      key - the key
      Returns:
      the t