接口 Wrapped

    • 方法详细资料

      • isUnwrappableAs

        boolean isUnwrappableAs​(Class unwrapType)
        Can this wrapped service be unwrapped as the indicated type?
        参数:
        unwrapType - The type to check.
        返回:
        True/false.
      • unwrap

        <T> T unwrap​(Class<T> unwrapType)
        Unproxy the service proxy
        参数:
        unwrapType - The java type as which to unwrap this instance.
        返回:
        The unwrapped reference
        抛出:
        UnknownUnwrapTypeException - if the service cannot be unwrapped as the indicated type