Class JpaDataRouteReference

java.lang.Object
com.broadleafcommerce.common.jpa.data.JpaDataRouteReference

@Deprecated public class JpaDataRouteReference extends Object
Deprecated.
Additional reference functionality on top of what is offered by DataRouteReference - specifically for JPA use cases.
Author:
Jeff Fischer
  • Constructor Details

    • JpaDataRouteReference

      public JpaDataRouteReference(List<JpaEntityScanBean> scans, com.broadleafcommerce.common.extension.data.DataRouteReference reference)
      Deprecated.
  • Method Details

    • findRouteByDomainClass

      @Deprecated public Optional<com.broadleafcommerce.common.extension.data.DataRouteSupporting> findRouteByDomainClass(Class<?> domainClass)
      Deprecated.
      Replaced by EntityScanningDataRouteReferenceBeanPostProcessor. Manual discovery of routes for entity extensions should no longer be required, as they are automatically discovered in the bean post processor.
      Given a domain class, attempt to find a unique route associated with that entity. Will accurately return routes for entities belonging to a service (or extension), but will not resolve a route for entities belonging to a common library.
      Parameters:
      domainClass - The domain class to use to try to identify a unique route.
      Returns:
      The unique route identified, if applicable.