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:
HttpSender, HttpSenderBase, MultipartHttpSender, RestSender, WebServiceSender

public interface CanUseSharedResource<T> extends IConfigurable, ConfigurableLifecycle
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Method Summary

    Modifier and Type
    Method
    Description
    Used to validate the expected type so now unexpected ClassCastExceptions can occur.
    default T
    getSharedResource(String sharedResourceName)
    Retrieve the shared resource from Spring
    void
    setSharedResourceRef(String sharedResourceName)
     

    Methods inherited from interface org.springframework.context.ApplicationContextAware

    setApplicationContext

    Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle

    configure, getPhase

    Methods inherited from interface org.frankframework.core.IConfigurable

    configure

    Methods inherited from interface org.frankframework.core.IConfigurationAware

    getApplicationContext, getName

    Methods inherited from interface org.frankframework.core.INamedObject

    getName, setName

    Methods inherited from interface org.frankframework.core.IScopeProvider

    getConfigurationClassLoader

    Methods inherited from interface org.springframework.context.Lifecycle

    isRunning, start, stop

    Methods inherited from interface org.springframework.context.SmartLifecycle

    isAutoStartup, stop
  • 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.