Package io.microsphere.net
Class ServiceLoaderURLStreamHandlerFactory
- java.lang.Object
-
- io.microsphere.net.DelegatingURLStreamHandlerFactory
-
- io.microsphere.net.ServiceLoaderURLStreamHandlerFactory
-
- All Implemented Interfaces:
java.net.URLStreamHandlerFactory
public class ServiceLoaderURLStreamHandlerFactory extends DelegatingURLStreamHandlerFactory
DecoratingURLStreamHandlerFactoryclass delegates the composite ofURLStreamHandlerFactoryandURLStreamHandlerinstances that are loaded by the JDK'sServiceLoader.First, the
DelegatingURLStreamHandlerFactory.createURLStreamHandler(String)method tries to create an instance ofURLStreamHandlervid eachURLStreamHandlerFactorydelegate in theprioritizedorder, once some one returns a non-null result, it will be taken. Otherwise,ExtendableProtocolURLStreamHandlerdelegates will be used to resolve the result if possible.- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Prioritized
-
-
Constructor Summary
Constructors Constructor Description ServiceLoaderURLStreamHandlerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidattach()-
Methods inherited from class io.microsphere.net.DelegatingURLStreamHandlerFactory
createURLStreamHandler, getDelegate
-
-