/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }
/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }
/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }
/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }
/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }
/** * Get privileged exception action to obtain Class from given class name. * If run using security manager, the returned privileged exception action * must be invoked within a doPrivileged block. * <p/> * The actual context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of the calling class will be utilized. * * @param <T> class type. * @param name class name. * @return privileged exception action to obtain the Class. * The action could throw {@link ClassNotFoundException} or return {@code null} if the class cannot be found. * @throws ClassNotFoundException in case the class cannot be loaded with the context class loader. * @see AccessController#doPrivileged(java.security.PrivilegedExceptionAction) */ public static <T> PrivilegedExceptionAction<Class<T>> classForNameWithExceptionPEA(final String name) throws ClassNotFoundException { return classForNameWithExceptionPEA(name, getContextClassLoader()); }
/** * Get privileged action to obtain Class from given class name. * <p> * If run using security manager, the returned privileged action * must be invoked within a doPrivileged block. * The context class loader will be utilized if accessible and non-null. * Otherwise the defining class loader of this class will * be utilized. * </p> * * @param <T> class type. * @param name class name. * @return privileged action to obtain desired Class. * The action could return {@code null} if the class cannot be found. * @see AccessController#doPrivileged(java.security.PrivilegedAction) */ public static <T> PrivilegedAction<Class<T>> classForNamePA(final String name) { return classForNamePA(name, getContextClassLoader()); }