本文整理汇总了Java中org.androidannotations.annotations.EActivity类的典型用法代码示例。如果您正苦于以下问题:Java EActivity类的具体用法?Java EActivity怎么用?Java EActivity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EActivity类属于org.androidannotations.annotations包,在下文中一共展示了EActivity类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import org.androidannotations.annotations.EActivity; //导入依赖的package包/类
@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);
}
}
开发者ID:permissions-dispatcher,项目名称:AndroidAnnotationsPermissionsDispatcherPlugin,代码行数:10,代码来源:NeedsPermissionHandler.java
示例2: loadApiPropertyFile
import org.androidannotations.annotations.EActivity; //导入依赖的package包/类
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");
}
}