本文整理匯總了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");
}
}