Class JAXBResourceProvider<T>

java.lang.Object
com.peterphi.std.guice.common.serviceprops.jaxbref.JAXBResourceProvider<T>
All Implemented Interfaces:
com.google.inject.Provider<T>, javax.inject.Provider<T>

public class JAXBResourceProvider<T> extends Object implements com.google.inject.Provider<T>
  • Constructor Details

    • JAXBResourceProvider

      public JAXBResourceProvider(com.google.inject.Provider<JAXBResourceFactory> resourceFactoryProvider, com.google.inject.Provider<ConfigRef> resource, Class<T> clazz)
  • Method Details

    • withCacheValidity

      public JAXBResourceProvider withCacheValidity(Timeout cacheValidity)
      Change the period that serialised results will be cached for
      Parameters:
      cacheValidity -
    • get

      public T get()
      Specified by:
      get in interface com.google.inject.Provider<T>
      Specified by:
      get in interface javax.inject.Provider<T>