Package com.labs64.netlicensing.domain
Class EntityFactory
java.lang.Object
com.labs64.netlicensing.domain.EntityFactory
Factory that contains static methods for creating entities
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
create
(Netlicensing netlicensing, Class<T> entityClass) Creates entity of specific class from service response<T> Page<T>
createPage
(Netlicensing netlicensing, Class<T> entityClass) Creates page of entities of specified class from service response
-
Constructor Details
-
EntityFactory
public EntityFactory()
-
-
Method Details
-
create
Creates entity of specific class from service response- Parameters:
netlicensing
- service XML responseentityClass
- 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 responseentityClass
- entity class- Returns:
- page of entities created from service response
- Throws:
NetLicensingException
-