to.etc.domui.themes
Class FragmentedThemeResourceFactory
java.lang.Object
to.etc.domui.themes.FragmentedThemeResourceFactory
- All Implemented Interfaces:
- IResourceFactory
public class FragmentedThemeResourceFactory
- extends java.lang.Object
- implements IResourceFactory
This provides resources for the current theme: it handles all names starting with $currentTheme/ and
resolves them inside the current theme space.
- Author:
- Frits Jalvingh
Created on Jan 15, 2011
Field Summary |
static java.lang.String |
CURRENT
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CURRENT
public static final java.lang.String CURRENT
- See Also:
- Constant Field Values
FragmentedThemeResourceFactory
public FragmentedThemeResourceFactory()
accept
public int accept(java.lang.String name)
- Description copied from interface:
IResourceFactory
- Return a > 0 value when this factory can provide (recognises the name format) for this
resource. The return value is a score; the factory returning the highest score will win.
Accepting a resource does not imply that the resource actually exists.
- Specified by:
accept
in interface IResourceFactory
- Returns:
getResource
public IResourceRef getResource(DomApplication da,
java.lang.String name,
IResourceDependencyList rdl)
throws java.lang.Exception
- Description copied from interface:
IResourceFactory
- Create the ref for the resource.
- Specified by:
getResource
in interface IResourceFactory
- Returns:
-
- Throws:
java.lang.Exception