public abstract class LocalizationContributor extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
LocalizationContributor() |
Modifier and Type | Method and Description |
---|---|
static URL |
findResource(String resource,
Class clazz)
Finds a specified localizable resource.
|
String |
getName()
Returns the name of this implementation, defaulting to the class name.
|
String |
getPluginName()
Returns the plugin that this implementation is located in, or null if the plugin could not be determined.
|
abstract URL |
getPluginResource(String resource,
PluginWrapper plugin)
Look up a resource for a plugin.
|
abstract URL |
getResource(String resource)
Returns the specific resource located in the resources searched by the specific implementation, or null if not found.
|
@CheckForNull public abstract URL getResource(@NonNull String resource)
resource
- The resource to look for as absolute path (cf. ClassLoader#getResource)@NonNull public String getName()
@CheckForNull public final String getPluginName()
public static URL findResource(String resource, Class clazz)
resource
- the resource name to look forclazz
- the class context for the resource name@CheckForNull public abstract URL getPluginResource(@NonNull String resource, @NonNull PluginWrapper plugin)
resource
- the resource to look upplugin
- the pluginCopyright © 2016–2022. All rights reserved.