org.mobicents.servlet.sip.annotations
Class SipApplicationAnnotationUtils

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

public class SipApplicationAnnotationUtils
extends java.lang.Object

Utils for parwing SipApplication annotation without a classloader

Author:
Vladimir Ralev

Constructor Summary
SipApplicationAnnotationUtils()
           
 
Method Summary
static boolean findPackageInfoInArchive(java.io.File archive)
           
static boolean findPackageInfoinDirectory(java.io.File file)
          Determine if there is a sip application in this folder.
static boolean findSipApplicationAnnotation(java.io.InputStream stream)
          Determine if this stream contains SipApplication annotations TODO: HACK: FIXME: This method reads raw class file trying to determine if it uses the SIpApplication annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipApplicationAnnotationUtils

public SipApplicationAnnotationUtils()
Method Detail

findPackageInfoInArchive

public static boolean findPackageInfoInArchive(java.io.File archive)

findPackageInfoinDirectory

public static boolean findPackageInfoinDirectory(java.io.File file)
Determine if there is a sip application in this folder. TODO: HACK: FIXME: This method reads raw class file trying to determine if it uses the SIpApplication annotation. This seems to be reliable and a lot faster than using a classloader, but can be reviewed in the future especially when JBoss AS 5.0 is available with the new deployer.


findSipApplicationAnnotation

public static boolean findSipApplicationAnnotation(java.io.InputStream stream)
Determine if this stream contains SipApplication annotations TODO: HACK: FIXME: This method reads raw class file trying to determine if it uses the SIpApplication annotation. This seems to be reliable and a lot faster than using a classloader, but can be reviewed in the future especially when JBoss AS 5.0 is available with the new deployer.



Copyright © 2009. All Rights Reserved.