Android Afianl框架(1)——FinalActivity注解

java.lang

   1.@Deprecated

           源代码标记@Deprecated是在JDK1.5中作为内置的annotation引入的,用于表明类(class)、方法(method)、字段(field)已经不再推荐使用,并且在以后的JDK版本中可能将其删除,编译器在默认情况下检测到有此标记的时候会提示警告信息。 

  2.@Override
      这个方法是从父类/接口 继承过来的,需要你重写一次

  3.@SuppressWarnings

     批注允许您选择性地取消特定代码段(即,类或方法)中的警告

android.view.ViewDebug

  1.@CapturedViewProperty

     This annotation can be used to mark fields and methods to be dumped when the view is captured. Methods with this annotation must have no arguments and must return a valid type of data.

 2.@ExportedProperty

  This annotation can be used to mark fields and methods to be dumped by the view server.
 3.@FlagToString

      Defines a mapping from a flag to a String.
 4.@IntToString

          Defines a mapping from an int value to a String.

net.tsz.afinal.annotation.sqlite  

 1.@Id

  主键注解
 2.@OneToMany

  一对多注解
 3.@Property

  属性注解
 4.@Table

  数据库表注解
 5.@Transient

忽略属性注解(如果该属性添加这个注解,afinal的orm功能将忽略该属性)

 

net.tsz.afinal.annotation.view

     1.@Select


     2.@ViewInject

           此注册         @ViewInject(id=R.id.textView) TextView textView; //这里使用了afinal的ioc功能

 待续...

 
posted on 2013-04-08 22:50  洛易  阅读(2639)  评论(0编辑  收藏  举报