Interface EntityFactory
- All Known Implementing Classes:
EntityFactoryImpl
public interface EntityFactory
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> T
createInstance
(Class<T> clazz) Instantiate an entity<T> T
createInstance
(Class<T> clazz, @Nullable Serializable id) Instantiate an entity
-
Method Details
-
createInstance
Instantiate an entity- Parameters:
clazz
- Class of the entityid
- id of the entity
-
createInstance
Instantiate an entity- Parameters:
clazz
- Class of the entity
-