org.hibernate.search.bridge.util.impl

## Interface BridgeAdaptor

- All Known Implementing Classes:
    NullEncodingFieldBridge, NullEncodingTwoWayFieldBridge, String2FieldBridgeAdaptor, TwoWayString2FieldBridgeAdaptor, TwoWayString2FieldBridgeIgnoreAnalyzerAdaptor

      public interface BridgeAdaptor

  An interface for bridge adaptors, i.e. types exposing one bridge interface and using another bridge instance under the hood.

  Implementing this interface allows `BridgeAdaptorUtils` to detect specific bridge interfaces (`TwoWayStringBridge`, `IgnoreAnalyzerBridge`, ...) even when the adaptor does no re-implement the interface.

  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `unwrap(Class<T> bridgeClass)` Return an object of the specified type to allow access to specific bridge interfaces.

- - ### Method Detail

    - #### unwrap

          <T> T unwrap(Class<T> bridgeClass)

      Return an object of the specified type to allow access to specific bridge interfaces.

      If no adapted bridge matches this type, `null` is returned.

      Returns:
        An instance of the specified class, or `null` if there is none.

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved