Interface SingleIndexRequestMessageBuilder
-
- All Superinterfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
public interface SingleIndexRequestMessageBuilder extends com.broadleafcommerce.common.extension.data.DataRoutePartitionAwareA component that can build aSingleIndexRequestfor a particularIndexableentity.SingleIndexRequestMessageFactoryinjects allSingleIndexRequestMessageBuildersand will use the first for whichcanBuild(Indexable)is true.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleIndexRequest<Identifiable>build(Indexable entity)Build aSingleIndexRequestfor the given entity.booleancanBuild(Indexable entity)Reports whether this builder can build aSingleIndexRequestfor the given entity.
-
-
-
Method Detail
-
canBuild
boolean canBuild(Indexable entity)
Reports whether this builder can build aSingleIndexRequestfor the given entity.- Parameters:
entity- the entity to check this builder's support for- Returns:
- true if the builder can build a
SingleIndexRequestfor the entity, false otherwise
-
build
SingleIndexRequest<Identifiable> build(Indexable entity)
Build aSingleIndexRequestfor the given entity.- Parameters:
entity- the entity to create aSingleIndexRequestfor.- Returns:
- a new
SingleIndexRequestfor the given entity
-
-