Package org.apache.wicket.resource
Locale aware resouce loaders.
-
Interface Summary Interface Description FileSystemPathService Gets the actual path for a specific file system.IPropertiesChangeListener To be implemented by listeners interested in PropertiesFactory events fired after a change to the properties has been detectedIPropertiesFactory Implementations are responsible forlocatingPropertiesobjects, which are a thin wrapper aroundValueMapand is used to locate localized messages.IPropertiesFactoryContext environment required for properties factoryIPropertiesLoader Property loaders as used by PropertiesFactory to load propertiesIScopeAwareTextResourceProcessor AITextResourceCompressorthat receives the scope class and the resource name as a context information that it can use for the processing of the resourceITextResourceCompressor Allow for different implementations of a text compressor -
Class Summary Class Description CompositeCssCompressor CompositeJavaScriptCompressor CoreLibrariesContributor A helper class that contributes all required JavaScript resources needed for Wicket Ajax functionalityCssUrlReplacer This compressor is used to replace URLs within CSS files with URLs created from PackageResourceReferences that belongs to their corresponding resources (e.g images).The scope of the CSS file is used to create the PackageResourceReferences.FileSystemJarPathService Gets the actual path for a jar file systemFileSystemResource Used to provide resources based on the on Java NIO FileSystem API.
For more information seeFileSystemResourceReferenceFileSystemResourceReference This resource reference is used to provide a reference to a resource based on Java NIO FileSystem API.
To implement a mime type detection refer to the documentation ofFiles.probeContentType(Path)and provide an implementation for java.nio.file.spi.FileTypeDetector in the META-INF/services folder for jars or in the /WEB-INF/classes/META-INF/services folder for webapps
You can optionally overrideFileSystemResourceReference.getFileSystemResource()to provide an inline mime type detection, which is preferred to the default detection.
Example:IsoPropertiesFilePropertiesLoader Load properties from properties file.JQueryPluginResourceReference Base class for JavaScript resources that are JQuery plugins.JQueryResourceReference The resource reference for the jquery javascript library as released with Wicket.NoOpTextCompressor A no-op text compressorProperties Kind of like java.util.Properties but based on Wicket's ValueMap and thus benefiting from all its nice build-in type converters and without parent properties.PropertiesFactory Default implementation ofIPropertiesFactorywhich uses theIResourceStreamLocatoras defined byResourceSettings.getResourceStreamLocator()to load thePropertiesobjects.ResourceUtil Utilities for resources.TextTemplateResourceReference A class which adapts aPackageTextTemplateto aResourceReference.UtfPropertiesFilePropertiesLoader Load properties from properties file via a Reader, which allows to provide the charset and thus the encoding can be different than ISO 8859-1.XmlFilePropertiesLoader Load properties from XML file -
Exception Summary Exception Description CircularDependencyException Thrown when a circular dependency is detected between resources.