Interface CanUseSharedResource<T>

All Superinterfaces:
org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.Aware, ConfigurableLifecycle, FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
All Known Implementing Classes:
AbstractHttpSender, HttpSender, WebServiceSender

public interface CanUseSharedResource<T> extends FrankElement, 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

    getPhase, isAutoStartup

    Methods inherited from interface org.frankframework.core.HasApplicationContext

    getApplicationContext, getConfigurationClassLoader

    Methods inherited from interface org.frankframework.core.HasName

    getName

    Methods inherited from interface org.frankframework.core.IConfigurable

    configure

    Methods inherited from interface org.springframework.context.Lifecycle

    isRunning, start, stop

    Methods inherited from interface org.springframework.context.SmartLifecycle

    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.