Package io.mats3

Interface MatsFactory.MatsWrapper<T>

Type Parameters:
T - the type of the wrapped instance.
All Known Subinterfaces:
DeferredConnectionProxyDataSourceWrapper.DeferredConnectionProxy
All Known Implementing Classes:
ConnectionFactoryWithStartStopWrapper, ConnectionFactoryWrapper, DataSourceWrapper, DeferredConnectionProxyDataSourceWrapper, JmsMatsTransactionManager_JmsAndSpringManagedSqlTx.DeferredConnectionProxyDataSourceWrapper_InfrastructureProxy, MatsEndpoint.ProcessContextWrapper, MatsFactory.MatsFactoryWrapper, MatsInitiator.MatsInitiateWrapper, ScenarioConnectionFactoryWrapper, SpringJmsMatsFactoryWrapper
Enclosing interface:
MatsFactory

public static interface MatsFactory.MatsWrapper<T>
Base Wrapper interface which Mats-specific Wrappers implements, defining four "wrappee" methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setWrappee(T target)
     
     
    default T
     
    default <I> I
    unwrapTo(Class<I> iface)
     
  • Method Details

    • setWrappee

      void setWrappee(T target)
    • unwrap

      T unwrap()
    • unwrapTo

      default <I> I unwrapTo(Class<I> iface)
    • unwrapFully

      default T unwrapFully()
      Returns:
      the fully unwrapped instance: If the returned instance from unwrap() is itself a MatsWrapper, it will recurse down by invoking this method (unwrapFully()) again on the returned target.