Jave register+as+parallel+capable+class+loader
14 Jave code examples are found related to "
register+as+parallel+capable+class+loader".
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
Example 1
Source File: ClassLoader.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 2
Source File: ClassLoader.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 3
Source File: ClassLoader.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 4
Source File: ClassLoader.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 5
Source File: ClassLoader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 6
Source File: ClassLoader.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * Registers the caller as * {@linkplain #isRegisteredAsParallelCapable() parallel capable}. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return {@code true} if the caller is successfully registered as * parallel capable and {@code false} if otherwise. * * @see #isRegisteredAsParallelCapable() * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 7
Source File: ClassLoader.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 8
Source File: ClassLoader.java From jdk-1.7-annotated with Apache License 2.0 | 3 votes |
/** * Registers the caller as parallel capable.</p> * The registration succeeds if and only if all of the following * conditions are met: <br> * 1. no instance of the caller has been created</p> * 2. all of the super classes (except class Object) of the caller are * registered as parallel capable</p> * Note that once a class loader is registered as parallel capable, there * is no way to change it back. </p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 9
Source File: ClassLoader.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 10
Source File: ClassLoader.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 11
Source File: ClassLoader.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { Class<? extends ClassLoader> callerClass = Reflection.getCallerClass().asSubclass(ClassLoader.class); return ParallelLoaders.register(callerClass); }
Example 12
Source File: ClassLoader.java From j2objc with Apache License 2.0 | 2 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { return true; }
Example 13
Source File: ClassLoader.java From AndroidComponentPlugin with Apache License 2.0 | 2 votes |
/** * Registers the caller as parallel capable. * The registration succeeds if and only if all of the following * conditions are met: * <ol> * <li> no instance of the caller has been created</li> * <li> all of the super classes (except class Object) of the caller are * registered as parallel capable</li> * </ol> * <p>Note that once a class loader is registered as parallel capable, there * is no way to change it back.</p> * * @return true if the caller is successfully registered as * parallel capable and false if otherwise. * * @since 1.7 */ @CallerSensitive protected static boolean registerAsParallelCapable() { return true; }
Example 14
Source File: ClassLoader.java From jtransc with Apache License 2.0 | 0 votes |
native protected static boolean registerAsParallelCapable();