Class DefaultAuthorizedClientService.BaseUriInitializer

java.lang.Object
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>>
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.
  • Constructor Details

  • Method Details

    • initialize

      protected Optional<org.springframework.web.util.UriComponentsBuilder> initialize() throws org.apache.commons.lang3.concurrent.ConcurrentException
      Specified by:
      initialize in class org.apache.commons.lang3.concurrent.LazyInitializer<Optional<org.springframework.web.util.UriComponentsBuilder>>
      Throws:
      org.apache.commons.lang3.concurrent.ConcurrentException