anonymous wrote : 2) Validation is a concern that gets removed from ejb3-core and is
testable outside using only a metadata object.
|
Do we have a validator API which can be used for validations which require the deployment
unit or the classloader associated with the unit? The current validator interface works on
just the metadata :
public interface Validator
| {
|
| /**
| * Validates the specified metadata against the configured
| * validators
| */
| void validate(JBossMetaData md) throws ValidationException;
|
| }
For some validations, we need to have access to the classloader associated with the unit.
Ex: To validate that a SLSB's home interface has exactly one create method (EJB 3.0
Specification 4.6.8 Bullet 4, 4.6.10 Bullet 4). Right now, such validations are being done
in the core.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232476#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...