Package org.cyclos.impl.access
Class EntityCheckRegistryImpl
- java.lang.Object
-
- org.cyclos.impl.access.EntityCheckRegistryImpl
-
- All Implemented Interfaces:
EntityCheckRegistry
@Component public class EntityCheckRegistryImpl extends Object implements EntityCheckRegistry
Implementation forEntityCheckRegistry
-
-
Constructor Summary
Constructors Constructor Description EntityCheckRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends SimpleEntity>
EntityCheck<? super E>get(Class<E> entityClass)Returns theEntityCheckfor the given entity class.<E extends SimpleEntity>
voidregister(EntityCheck<E> entityCheck)Registers the givenEntityCheck
-
-
-
Method Detail
-
get
public <E extends SimpleEntity> EntityCheck<? super E> get(Class<E> entityClass)
Description copied from interface:EntityCheckRegistryReturns theEntityCheckfor the given entity class. Superclasses are checked as well, so, for example, if there is a registeredEntityCheckforProductand the class isMemberProduct, it will be returned.- Specified by:
getin interfaceEntityCheckRegistry
-
register
public <E extends SimpleEntity> void register(EntityCheck<E> entityCheck)
Description copied from interface:EntityCheckRegistryRegisters the givenEntityCheck- Specified by:
registerin interfaceEntityCheckRegistry
-
-