|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.util.AddinPolicyUtils
A utility class containing addin policies we want to enforce. This Class is removed in non debug builds.
Method Summary | |
static void |
applicationExiting()
|
static void |
checkCallStackForPolicyViolation(java.lang.String violationMethod,
java.lang.String method)
Check if we are called with a particular method on the stack. |
static void |
creatingAbstractButtonLeakPolicyCheck(javax.swing.AbstractButton abstractButton)
Make certain we're avoiding a known memory leak causes. |
static void |
creatingImageIconPolicyCheck()
Check if creating an ImageIcon is ok. |
static void |
creatingJMenuItemLeakPolicyCheck(javax.swing.JMenuItem menuItem,
int commandID)
|
static void |
creatingLocalActionLeakPolicyCheck(javax.swing.Action action)
Make certain we're avoiding a known memory leak causes. |
static void |
creatingThreadPolicyCheck()
Check if creating a Thread is ok. |
static void |
ensureGarbageCollectable(java.lang.Object obj)
Calls ensureGarbageCollectable(Object,int) with seconds set to 10. |
static void |
ensureGarbageCollectable(java.lang.Object obj,
int seconds)
Determines whether the given object is available for garbage collection within the given time bounds. |
static void |
initializingAddins(boolean initializing)
|
static void |
runRunnable(java.lang.Runnable runnable)
A utility method to run code that is to be used only if the AddinPolicyUtils is in "effect" |
static boolean |
setWarnWhenCreatingImageIcons(boolean warn)
|
static boolean |
setWarnWhenCreatingThreads(boolean warn)
|
static boolean |
setWarnWhenLeakingJMenuItems(boolean warn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void initializingAddins(boolean initializing)
public static void creatingImageIconPolicyCheck()
public static void creatingThreadPolicyCheck()
public static void creatingAbstractButtonLeakPolicyCheck(javax.swing.AbstractButton abstractButton)
public static void creatingLocalActionLeakPolicyCheck(javax.swing.Action action)
public static void creatingJMenuItemLeakPolicyCheck(javax.swing.JMenuItem menuItem, int commandID)
public static boolean setWarnWhenCreatingThreads(boolean warn)
public static boolean setWarnWhenCreatingImageIcons(boolean warn)
public static boolean setWarnWhenLeakingJMenuItems(boolean warn)
public static void runRunnable(java.lang.Runnable runnable)
public static void applicationExiting()
public static void checkCallStackForPolicyViolation(java.lang.String violationMethod, java.lang.String method)
public static void ensureGarbageCollectable(java.lang.Object obj)
ensureGarbageCollectable(Object,int)
with seconds set to 10.
obj
- Object to checkpublic static void ensureGarbageCollectable(java.lang.Object obj, int seconds)
System.gc()
.
If after seconds
seconds the reference is still not cleared,
an error message is printed to the console.
obj
- The object to checkseconds
- The number of seconds to wait around hoping for the object
to be collected.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.