Class DefaultEntityObjectMapperFactory

java.lang.Object
is.codion.framework.json.domain.DefaultEntityObjectMapperFactory
All Implemented Interfaces:
EntityObjectMapperFactory

public class DefaultEntityObjectMapperFactory extends Object implements EntityObjectMapperFactory
A default EntityObjectMapperFactory implementation, extend to add custom serialisers/deserializers.

Subclasses should be exposed as a service.

  • Constructor Details

    • DefaultEntityObjectMapperFactory

      protected DefaultEntityObjectMapperFactory(DomainType domainType)
      Instantiates a new instance compatible with the given domain type.
      Parameters:
      domainType - the domain type
  • Method Details

    • compatibleWith

      public final boolean compatibleWith(DomainType domainType)
      Description copied from interface: EntityObjectMapperFactory
      Returns true if this mapper factory is compatible with the given domain type.
      Specified by:
      compatibleWith in interface EntityObjectMapperFactory
      Parameters:
      domainType - the domain type
      Returns:
      true if this mapper factory is compatible with the given domain type