@Documented @Target(value=TYPE) @Retention(value=RUNTIME) public @interface OnGC
X_GC allows objects
to cleanly automate the job of cleaning up their children.
Current support only includes calling an ordered list of onDestroy methods.
Use the instanceGCMethods() to define the order in which you want the zero-arg methods called.
Runtime gc will use some reflection, as efficiently as possible, to allow any object
to properly destroy another object without actually knowing anything at all about it's type.| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
chainDeleteFields |
boolean |
deleteInstanceFields |
String[] |
instanceGCMethods
The ordered list of zero-arg gc methods you would like to call,
in the order you would like them called.
|
String[] |
staticGCMethods
An ordered list of one-arg static methods you want to be executed.
|
public abstract String[] instanceGCMethods
public abstract String[] staticGCMethods
public abstract boolean deleteInstanceFields
public abstract boolean chainDeleteFields
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.