Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

java.beans
Annotation Type Transient


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Transient

Indicates that an attribute called "transient" should be declared with the given value when the Introspector constructs a PropertyDescriptor or EventSetDescriptor classes associated with the annotated code element. A true value for the "transient" attribute indicates to encoders derived from Encoder that this feature should be ignored.

The Transient annotation may be be used in any of the methods that are involved in a FeatureDescriptor subclass to identify the transient feature in the annotated class and its subclasses. Normally, the method that starts with "get" is the best place to put the annotation and it is this declaration that takes precedence in the case of multiple annotations being defined for the same feature.

To declare a feature non-transient in a class whose superclass declares it transient, use @Transient(false). In all cases, the Introspector decides if a feature is transient by referring to the annotation on the most specific superclass. If no Transient annotation is present in any superclass the feature is not transient.

Since:
1.7

Optional Element Summary
Modifier and Type Optional Element and Description
 boolean value
           
 

value

public abstract boolean value
Default:
true

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

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, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.