Interface SharedResource<T>

All Superinterfaces:
ConfigurableLifecycle, HasName, IConfigurable, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
All Known Implementing Classes:
HttpSession

public interface SharedResource<T> extends ConfigurableLifecycle, HasName, org.springframework.context.Phased
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    By default give this the lowest Phase, so it's started first and stopped last.
    Retrieve the shared resource so CanUseSharedResource holders can use it

    Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle

    isAutoStartup

    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
  • Field Details

  • Method Details

    • getSharedResource

      T getSharedResource()
      Retrieve the shared resource so CanUseSharedResource holders can use it
    • getPhase

      default int getPhase()
      By default give this the lowest Phase, so it's started first and stopped last.
      Specified by:
      getPhase in interface ConfigurableLifecycle
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle