FileDocCategorySizeDatePackage
ImplementsMessageListener.javaAPI DocGlassfish v2 API3193Fri May 04 22:34:04 BST 2007com.sun.enterprise.tools.verifier.tests.ejb.messagebean

ImplementsMessageListener

public class ImplementsMessageListener extends MessageBeanTest
Verify that message beans implement the MessageListener interface
author
Jerome Dochez
version

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.tools.verifier.Resultcheck(com.sun.enterprise.deployment.EjbMessageBeanDescriptor descriptor)
Run a verifier test against an individual declared message drive bean component

param
descriptor the Enterprise Java Bean deployment descriptor
return
Result the results for this assertion

        
        Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
        Class mbc = loadMessageBeanClass(descriptor, result);
        if (descriptor.getEjbBundleDescriptor().getSpecVersion().equals("2.0"))
            testImplementationOf(mbc, javax.jms.MessageListener.class.getName(), result);
        else
            testImplementationOf(mbc, descriptor.getMessageListenerType(), result);
        return result;