org.mobicents.servlet.sip.annotations
Class ClassFileScanner

java.lang.Object
  extended by org.mobicents.servlet.sip.annotations.ClassFileScanner

public class ClassFileScanner
extends java.lang.Object

This class implement the logic to enumerate all class files in WEB-INF/classes and extract descriptor information. I am using this method because if I look directly in a classloader it would have loaded all libs includeing third party libs in WEB-INF/jar, and system libs. Parsing all these would be slow, so for now we will only look in WEB-INF/classes since it works. General TODO: Validation

Author:
Vladimir Ralev

Constructor Summary
ClassFileScanner(java.lang.String docbase, SipContext ctx)
           
 
Method Summary
 boolean isApplicationParsed()
          Shows if there is SipApplication annotation parsed and thur we dont need to look at sip.xml to seearch descriptor info.
 void scan()
          Scan the application for annotations with the contextconfig classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFileScanner

public ClassFileScanner(java.lang.String docbase,
                        SipContext ctx)
Method Detail

scan

public void scan()
          throws AnnotationVerificationException
Scan the application for annotations with the contextconfig classloader. It scans in the following locations : WEB-INF/classes WEB-INF/lib ../APP-INF/lib ../APP-INF/classes

Throws:
AnnotationVerificationException - thrown if some annotations doesn't follow the restrictions given by the annotation contract

isApplicationParsed

public boolean isApplicationParsed()
Shows if there is SipApplication annotation parsed and thur we dont need to look at sip.xml to seearch descriptor info.

Returns:


Copyright © 2008. All Rights Reserved.