@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Transient
value
宣布当
Introspector
构建
PropertyDescriptor
或
EventSetDescriptor
类注释的代码元素有关。对于“短暂”属性指示来自
Encoder
,这个功能应该是可以忽略
true
值编码器。
的Transient
注释可以被用在任何中所涉及的FeatureDescriptor
类识别注释的类和它的子类的瞬态特征的方法。通常情况下,开始与“获取”的方法是把注释的最好的地方,它是这个声明,在多个注释被定义为相同的功能的情况下优先。
声明一个特征非一类的超类声明它的暂态,使用@Transient(false)
。在所有的情况下,该Introspector
决定如果特征是指最具体的类注释的瞬态。如果没有Transient
注释出现在任何父类的特征是不是暂时的。
Modifier and Type | Optional Element and Description |
---|---|
boolean |
value
返回是否
Introspector 应构造带注释的方法的文物。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.