Class DefaultAuthorizedClientService.BaseUriInitializer

java.lang.Object
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer<T,org.apache.commons.lang3.concurrent.ConcurrentException>
org.apache.commons.lang3.concurrent.LazyInitializer<Optional<org.springframework.web.util.UriComponentsBuilder>>
com.broadleafcommerce.auth.server.service.DefaultAuthorizedClientService.BaseUriInitializer
All Implemented Interfaces:
org.apache.commons.lang3.concurrent.ConcurrentInitializer<Optional<org.springframework.web.util.UriComponentsBuilder>>, org.apache.commons.lang3.function.FailableSupplier<Optional<org.springframework.web.util.UriComponentsBuilder>,org.apache.commons.lang3.concurrent.ConcurrentException>
Enclosing class:
DefaultAuthorizedClientService<P extends AuthorizedClient,D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware>

protected class DefaultAuthorizedClientService.BaseUriInitializer extends org.apache.commons.lang3.concurrent.LazyInitializer<Optional<org.springframework.web.util.UriComponentsBuilder>>
This leverages the lazy-initializer pattern to ensure the base-uri resolution logic for relative URLs (which may be expensive) is only engaged if needed, and won't perform computation more than once.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.commons.lang3.concurrent.LazyInitializer

    org.apache.commons.lang3.concurrent.LazyInitializer.Builder<I extends org.apache.commons.lang3.concurrent.LazyInitializer<T>,T extends Object>

    Nested classes/interfaces inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer

    org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I extends org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer<T,E>,T extends Object,B extends org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>,E extends Exception>
  • Field Summary

    Fields inherited from interface org.apache.commons.lang3.function.FailableSupplier

    NUL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Optional<org.springframework.web.util.UriComponentsBuilder>
     

    Methods inherited from class org.apache.commons.lang3.concurrent.LazyInitializer

    builder, get, getTypedException, isInitialized

    Methods inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer

    close

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • initialize

      protected Optional<org.springframework.web.util.UriComponentsBuilder> initialize() throws org.apache.commons.lang3.concurrent.ConcurrentException
      Overrides:
      initialize in class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer<Optional<org.springframework.web.util.UriComponentsBuilder>,org.apache.commons.lang3.concurrent.ConcurrentException>
      Throws:
      org.apache.commons.lang3.concurrent.ConcurrentException