Class ServiceImplementation

  • All Implemented Interfaces:
    io.polygenesis.core.Generatable, io.polygenesis.core.Metamodel, io.polygenesis.core.Nameable

    public class ServiceImplementation
    extends Object
    implements io.polygenesis.core.Generatable, io.polygenesis.core.Metamodel
    The type Service implementation.
    Author:
    Christos Tsakostas
    • Constructor Detail

      • ServiceImplementation

        public ServiceImplementation​(io.polygenesis.models.api.Service service,
                                     Set<ServiceDependency> dependencies,
                                     Set<ServiceMethodImplementation> serviceMethodImplementations,
                                     Set<DomainObjectConverter> domainObjectConverters,
                                     io.polygenesis.models.domain.DomainObject domainObject,
                                     io.polygenesis.models.domain.DomainObject parentAggregateRoot)
        Instantiates a new Service implementation.
        Parameters:
        service - the service
        dependencies - the dependencies
        serviceMethodImplementations - the service method implementations
        domainObjectConverters - the domain object converters
        domainObject - the domain object
        parentAggregateRoot - the parent aggregate root
    • Method Detail

      • getObjectName

        public io.polygenesis.commons.valueobjects.ObjectName getObjectName()
        Specified by:
        getObjectName in interface io.polygenesis.core.Nameable
      • domainObjectConverter

        public DomainObjectConverter domainObjectConverter()
        Domain object converter domain object converter.
        Returns:
        the domain object converter
      • getService

        public io.polygenesis.models.api.Service getService()
        Gets service.
        Returns:
        the service
      • getDependencies

        public Set<ServiceDependency> getDependencies()
        Gets dependencies.
        Returns:
        the dependencies
      • getServiceMethodImplementations

        public Set<ServiceMethodImplementation> getServiceMethodImplementations()
        Gets service method implementations.
        Returns:
        the service method implementations
      • getDomainObjectConverters

        public Set<DomainObjectConverter> getDomainObjectConverters()
        Gets domain object converters.
        Returns:
        the domain object converters
      • getDomainObject

        public io.polygenesis.models.domain.DomainObject getDomainObject()
        Gets domain object.
        Returns:
        the domain object
      • getParentAggregateRoot

        public io.polygenesis.models.domain.DomainObject getParentAggregateRoot()
        Gets parent aggregate root.
        Returns:
        the parent aggregate root
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object