Class EntityFactory

java.lang.Object
com.labs64.netlicensing.domain.EntityFactory

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

    • EntityFactory

      public EntityFactory()
  • Method Details

    • 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