/** * Obtain a reference to the singleton instance. It is recommended that * callers check the value of {@link #isRegistered()} before using the * returned instance. * * @return A reference to the singleton instance */ public static TomcatURLStreamHandlerFactory getInstance() { getInstanceInternal(true); return instance; }
/** * Obtain a reference to the singleton instance. It is recommended that * callers check the value of {@link #isRegistered()} before using the * returned instance. */ public static TomcatURLStreamHandlerFactory getInstance() { getInstanceInternal(true); return instance; }
/** * Obtain a reference to the singleton instance. It is recommended that * callers check the value of {@link #isRegistered()} before using the * returned instance. * * @return A reference to the singleton instance */ public static TomcatURLStreamHandlerFactory getInstance() { getInstanceInternal(true); return instance; }
/** * Register this factory with the JVM. May be called more than once. The * implementation ensures that registration only occurs once. * * @return <code>true</code> if the factory is already registered with the * JVM or was successfully registered as a result of this call. * <code>false</code> if the factory was disabled prior to this * call. */ public static boolean register() { return getInstanceInternal(true).isRegistered(); }
/** * Prevent this this factory from registering with the JVM. May be called * more than once. * * @return <code>true</code> if the factory is already disabled or was * successfully disabled as a result of this call. * <code>false</code> if the factory was already registered prior * to this call. */ public static boolean disable() { return !getInstanceInternal(false).isRegistered(); }
/** * Prevent this this factory from registering with the JVM. May be called * more than once. * * @return <code>true</code> if the factory is already disabled or was * successfully disabled as a result of this call. * <code>false</code> if the factory was already registered prior * to this call. */ public static boolean disable() { return !getInstanceInternal(false).isRegistered(); }
/** * Register this factory with the JVM. May be called more than once. The * implementation ensures that registration only occurs once. * * @return <code>true</code> if the factory is already registered with the * JVM or was successfully registered as a result of this call. * <code>false</code> if the factory was disabled prior to this * call. */ public static boolean register() { return getInstanceInternal(true).isRegistered(); }
/** * Prevent this this factory from registering with the JVM. May be called * more than once. * * @return <code>true</code> if the factory is already disabled or was * successfully disabled as a result of this call. * <code>false</code> if the factory was already registered prior * to this call. */ public static boolean disable() { return !getInstanceInternal(false).isRegistered(); }
/** * Register this factory with the JVM. May be called more than once. The * implementation ensures that registration only occurs once. * * @return <code>true</code> if the factory is already registered with the * JVM or was successfully registered as a result of this call. * <code>false</code> if the factory was disabled prior to this * call. */ public static boolean register() { return getInstanceInternal(true).isRegistered(); }