|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.verifier.BeanVerifier
Attempts to verify the spec compliance of the beans in a given EJB-JAR file. Works against EJB spec 1.1 and 2.0. Built for use in JBoss project.
VerificationStrategy
,
VerificationEventFactory
Field Summary |
Fields inherited from interface org.jboss.verifier.strategy.VerificationContext |
VERSION_1_1, VERSION_2_0, VERSION_2_1 |
Constructor Summary | |
BeanVerifier()
Default constructor. |
Method Summary | |
void |
addVerificationListener(VerificationListener listener)
|
void |
fireBeanChecked(VerificationEvent event)
|
void |
fireSpecViolation(VerificationEvent event)
|
ApplicationMetaData |
getApplicationMetaData()
|
ClassLoader |
getClassLoader()
|
String |
getEJBVersion()
|
URL |
getJarLocation()
|
boolean |
getSuccess()
Check if the Verifier was successful |
protected VerificationStrategy |
getVerifier()
|
void |
removeVerificationListener(VerificationListener listener)
|
protected void |
setVerifier(String version)
|
void |
verify(URL url,
ApplicationMetaData metaData)
Checks the Enterprise Java Beans found in this Jar for EJB spec compliance (EJB Spec. |
void |
verify(URL url,
ApplicationMetaData metaData,
ClassLoader cl)
Checks the Enterprise Java Beans found in this Jar for EJB spec compliance (EJB Spec. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanVerifier()
Method Detail |
public void verify(URL url, ApplicationMetaData metaData)
url
- URL to the bean jar filepublic void verify(URL url, ApplicationMetaData metaData, ClassLoader cl)
url
- URL to the bean jar filecl
- The ClassLoader to usepublic boolean getSuccess()
true
if all Beans have been verified,
false
otherwise.public void addVerificationListener(VerificationListener listener)
addVerificationListener
in interface VerificationEventGenerator
public void removeVerificationListener(VerificationListener listener)
removeVerificationListener
in interface VerificationEventGenerator
public void fireBeanChecked(VerificationEvent event)
fireBeanChecked
in interface VerificationEventGenerator
public void fireSpecViolation(VerificationEvent event)
fireSpecViolation
in interface VerificationEventGenerator
public ApplicationMetaData getApplicationMetaData()
getApplicationMetaData
in interface VerificationContext
public URL getJarLocation()
getJarLocation
in interface VerificationContext
public ClassLoader getClassLoader()
getClassLoader
in interface VerificationContext
public String getEJBVersion()
getEJBVersion
in interface VerificationContext
protected void setVerifier(String version)
protected VerificationStrategy getVerifier()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |