Interface InstanceOrCallableInstance


  • @Deprecated
    public interface InstanceOrCallableInstance
    Deprecated.
    Holder of either instance or Callable that after invoked, will result into the instance.
    • Method Detail

      • isInstance

        boolean isInstance()
        Deprecated.
        Checks whether context contains a real instance
        Returns:
        true if instance is hold, false otherwise
      • isInstanceCallable

        boolean isInstanceCallable()
        Deprecated.
        Checks whether context contains a real instance
        Returns:
        true if instance is hold, false otherwise
      • asInstance

        <T> T asInstance​(Class<T> type)
                  throws IllegalStateException
        Deprecated.
        Wraps as instance
        Parameters:
        type - Type of the instance
        Returns:
        wrapped instance
        Throws:
        IllegalStateException - If content is not an instance