Interface EntityObjectMapperFactory
-
- All Known Implementing Classes:
DefaultEntityObjectMapperFactory
public interface EntityObjectMapperFactory
ProvidesEntityObjectMapper
instances for a given domain.
DefaultEntityObjectMapperFactory
is provided for
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityObjectMapper
entityObjectMapper(Entities entities)
Creates a newEntityObjectMapper
instance.static EntityObjectMapperFactory
instance(DomainType domainType)
Returns the first availableEntityObjectMapperFactory
instance compatible with the given domain type, if no such mapper factory is available a default one is returned.boolean
isCompatibleWith(DomainType domainType)
Returns true if this mapper factory is compatible with the given domain type.
-
-
-
Method Detail
-
entityObjectMapper
EntityObjectMapper entityObjectMapper(Entities entities)
Creates a newEntityObjectMapper
instance.- Parameters:
entities
- the domain entities- Returns:
- a new
EntityObjectMapper
instance.
-
isCompatibleWith
boolean isCompatibleWith(DomainType domainType)
Returns true if this mapper factory is compatible with the given domain type.- Parameters:
domainType
- the domain type- Returns:
- true if this mapper factory is compatible with the given domain type
-
instance
static EntityObjectMapperFactory instance(DomainType domainType)
Returns the first availableEntityObjectMapperFactory
instance compatible with the given domain type, if no such mapper factory is available a default one is returned.- Parameters:
domainType
- the domain type for which to find a mapper factory- Returns:
- a
EntityObjectMapperFactory
instance compatible with the given domain type.
-
-