Java 类org.androidannotations.annotations.EActivity 实例源码

项目:AndroidAnnotationsPermissionsDispatcherPlugin    文件:NeedsPermissionHandler.java   
@Override
protected void validate(Element element, ElementValidation validation) {
    if (validatorHelper.elementHasAnnotation(EActivity.class, element.getEnclosingElement())
            || validatorHelper.elementHasAnnotation(EFragment.class, element.getEnclosingElement())) {
        validatorHelper.isNotPrivate(element, validation);
        validatorHelper.isNotFinal(element, validation);
        validatorHelper.returnTypeIsVoid((ExecutableElement) element, validation);
    }
}
项目:android-modules    文件:AndroidAnnotationProcessorFix.java   
private void loadApiPropertyFile() throws FileNotFoundException {
    String filename = "androidannotations-api.properties";
    try {
        URL url = EActivity.class.getClassLoader().getResource(filename);
        propertiesApi.load(url.openStream());
    } catch (Exception e) {
        LOGGER.error("API property file {} couldn't be parsed");
        throw new FileNotFoundException("API property file " + filename + " couldn't be parsed. Please check your classpath and verify that AA-API's version is at least 3.0");
    }
}