public interface EntityProxyFactory
Entity proxies. Making a proxy of an Entity
subclass allows the InvocationHandler to translate the method calls into Entity
methods. This makes the subclasses more customisable for specific problems.DefaultEntityProxyFactory,
EntityFunctionResolver| Modifier and Type | Method and Description |
|---|---|
boolean |
isProxyEntity(Entity e)
Checks whether the supplied entity is a proxy.
|
<T extends Entity> |
proxyOfEntity(Entity e,
java.lang.Class<T> type)
Creates a proxy of the entity subclass.
|
void |
validateType(java.lang.Class<? extends Entity> type)
Validates the type can be proxied.
|
boolean isProxyEntity(Entity e)
e - Entity to check.<T extends Entity> T proxyOfEntity(Entity e, java.lang.Class<T> type)
e - Entity to proxy for.type - Type to proxy as.void validateType(java.lang.Class<? extends Entity> type)
type - Type to validate.