Class ProjectionTypeFactory
java.lang.Object
com.broadleafcommerce.common.extension.ProjectionTypeFactory
Factory for providing instantations of concrete implementations of the
Projection
interface based on a reference persistence domain class.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Projection<T>
RetrieveProjection
instance referencing the persistence domain class type.static <T> Projection<T>
RetrieveProjection
instance referencing the persistence domain class type.
-
Method Details
-
get
RetrieveProjection
instance referencing the persistence domain class type. SeeProjectionFactory
for more information on dynamic projections.- Type Parameters:
T
- The persistence domain class type- Parameters:
from
- The persistence domain class the projection instances references- Returns:
- The instantiated instance implementing Projection.
-
get
RetrieveProjection
instance referencing the persistence domain class type. SeeProjectionFactory
for more information on dynamic projections.- Type Parameters:
T
- The persistence domain class type- Parameters:
from
- The persistence domain class the projection instances referencesid
- The id value to set on the projection instance (seeProjection.getId()
)- Returns:
- The instantiated instance implementing Projection.
-