@DefaultNonNull public final class ThemePartFactory extends Object implements IBufferedPartFactory, IUrlPart
| Constructor and Description |
|---|
ThemePartFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String rurl)
Accept all resources that have a ".theme." string as a suffix in their
last part, like style.theme.css
|
Object |
decodeKey(String rurl,
IExtendedParameterInfo param)
Decode the input and create a KEY for the request.
|
void |
generate(PartResponse pr,
DomApplication da,
Object k,
IResourceDependencyList rdl)
This must generate the output for the resource.
|
public boolean accepts(@Nonnull String rurl)
@Nonnull public Object decodeKey(@Nonnull String rurl, @Nonnull IExtendedParameterInfo param) throws Exception
IBufferedPartFactorydecodeKey in interface IBufferedPartFactoryExceptionpublic void generate(@Nonnull PartResponse pr, @Nonnull DomApplication da, @Nonnull Object k, @Nonnull IResourceDependencyList rdl) throws Exception
IBufferedPartFactorygenerate in interface IBufferedPartFactoryda - The Application on behalf of which this resource is generated.k - The key, as specified by decodeKey.rdl - When running in development mode, each file resource used should be added
to this list. The buffer code will use that list to check whether a source
for this thing has changed; if so it will be re-generated. This causes runtime
editability for parameter files of any buffered thingydoo.ExceptionCopyright © 2017 etc.to. All rights reserved.