Package is.codion.framework.json.domain
Interface EntityObjectMapper.Factory
- All Known Implementing Classes:
EntityObjectMapper.AbstractFactory
- Enclosing class:
EntityObjectMapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides
EntityObjectMapper instances for a given domain.
EntityObjectMapper.AbstractFactory is provided for extension.-
Method Summary
Modifier and TypeMethodDescriptiondefault EntityObjectMapperentityObjectMapper(Entities entities) Creates a newEntityObjectMapperinstance.static EntityObjectMapper.Factoryinstance(DomainType domainType) Returns the first availableEntityObjectMapper.Factoryinstance supporting the given domain type, if no such mapper factory is available a default one, supporting all domain models, is returned.booleansupports(DomainType domainType) Returns true if this mapper factory supports the given domain type.
-
Method Details
-
entityObjectMapper
Creates a newEntityObjectMapperinstance.- Parameters:
entities- the domain entities- Returns:
- a new
EntityObjectMapperinstance.
-
supports
Returns true if this mapper factory supports the given domain type.- Parameters:
domainType- the domain type- Returns:
- true if this mapper factory supports the given domain type
-
instance
Returns the first availableEntityObjectMapper.Factoryinstance supporting the given domain type, if no such mapper factory is available a default one, supporting all domain models, is returned.- Parameters:
domainType- the domain type for which to find a mapper factory- Returns:
- a
EntityObjectMapper.Factoryinstance supporting the given domain type.
-