public class AnnotationProcessor extends Object
| Constructor and Description |
|---|
AnnotationProcessor(org.apache.catalina.core.StandardContext context) |
| Modifier and Type | Method and Description |
|---|---|
Map<org.wso2.carbon.device.mgt.common.DeviceTypeIdentifier,List<org.wso2.carbon.device.mgt.common.Feature>> |
extractFeatures(Set<String> entityClasses,
int tenantId,
boolean isSharedWithAllTenants)
Method identifies the URL templates and context by reading the annotations of a class
|
static URL |
findWebInfClassesPath(javax.servlet.ServletContext servletContext)
Find the URL pointing to "/WEB-INF/classes" This method may not work in conjunction with IteratorFactory
if your servlet container does not extract the /WEB-INF/classes into a real file-based directory
|
String |
getPathAnnotationValue(Method currentMethod)
Get value depicted by Path Annotation
|
Set<String> |
scanStandardContext(String className)
Scan the context for classes with annotations
|
public AnnotationProcessor(org.apache.catalina.core.StandardContext context)
public Set<String> scanStandardContext(String className) throws IOException
IOExceptionpublic Map<org.wso2.carbon.device.mgt.common.DeviceTypeIdentifier,List<org.wso2.carbon.device.mgt.common.Feature>> extractFeatures(Set<String> entityClasses, int tenantId, boolean isSharedWithAllTenants) throws ClassNotFoundException
ClassNotFoundExceptionpublic String getPathAnnotationValue(Method currentMethod) throws Throwable
currentMethod - Throwablepublic static URL findWebInfClassesPath(javax.servlet.ServletContext servletContext)
servletContext - Copyright © 2016 WSO2. All rights reserved.