Interface CanUseSharedResource<T>

All Superinterfaces:
org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.Aware, ConfigurableLifecycle, IConfigurable, IConfigurationAware, INamedObject, IScopeProvider, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
All Known Implementing Classes:
AbstractHttpSender, HttpSender, MultipartHttpSender, RestSender, WebServiceSender

public interface CanUseSharedResource<T> extends IConfigurable, ConfigurableLifecycle
  • Method Details

    • setSharedResourceRef

      void setSharedResourceRef(String sharedResourceName)
    • getSharedResource

      @Nonnull default T getSharedResource(String sharedResourceName)
      Retrieve the shared resource from Spring
    • getObjectType

      @Nullable Class<T> getObjectType()
      Used to validate the expected type so now unexpected ClassCastExceptions can occur. May be NULL in which case this check will be skipped and the SharedResource will be returned regardless.