[jboss-dev-forums] [Design of EJB 3.0] - Re: Mandating the presence of local/remote interface in Sess

jaikiran do-not-reply at jboss.com
Thu May 21 08:17:07 EDT 2009


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#4232476

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232476



More information about the jboss-dev-forums mailing list