Class EntityFactory


  • public class EntityFactory
    extends Object
    Factory that contains static methods for creating entities
    • Constructor Detail

      • EntityFactory

        public EntityFactory()
    • Method Detail

      • create

        public <T> T create​(Netlicensing netlicensing,
                            Class<T> entityClass)
                     throws NetLicensingException
        Creates entity of specific class from service response
        Parameters:
        netlicensing - service XML response
        entityClass - entity class
        Returns:
        entity class instance created from service response
        Throws:
        NetLicensingException
      • createPage

        public <T> Page<T> createPage​(Netlicensing netlicensing,
                                      Class<T> entityClass)
                               throws NetLicensingException
        Creates page of entities of specified class from service response
        Parameters:
        netlicensing - service XML response
        entityClass - entity class
        Returns:
        page of entities created from service response
        Throws:
        NetLicensingException