Class ClassPathResourceResolverPlugin
java.lang.Object
io.vertigo.core.plugins.resource.classpath.ClassPathResourceResolverPlugin
- All Implemented Interfaces:
ResourceResolverPlugin,CoreComponent,Plugin
Résolution des URL liées au classPath.
Cette résolution est en absolue.
- Author:
- prahmoune
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClassPathResourceResolverPlugin
public ClassPathResourceResolverPlugin()
-
-
Method Details
-
resolve
Resolves a resource string into its corresponding URL. This method takes a string representation of a resource (e.g., a file path, URI, or other identifier) and attempts to convert it into a URL object. If the resource cannot be resolved (e.g., due to an invalid format or inaccessible resource), an empty Optional is returned.- Specified by:
resolvein interfaceResourceResolverPlugin- Parameters:
resource- the string representation of the resource to resolve- Returns:
- The resolved URL if successful, or null if the resource cannot be resolved
-