to.etc.domui.themes
Class FragmentedThemeResourceFactory

java.lang.Object
  extended by 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
           
 
Constructor Summary
FragmentedThemeResourceFactory()
           
 
Method Summary
 int accept(java.lang.String name)
          Return a > 0 value when this factory can provide (recognises the name format) for this resource.
 IResourceRef getResource(DomApplication da, java.lang.String name, IResourceDependencyList rdl)
          Create the ref for the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT

public static final java.lang.String CURRENT
See Also:
Constant Field Values
Constructor Detail

FragmentedThemeResourceFactory

public FragmentedThemeResourceFactory()
Method Detail

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