|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.resource.BrokerTemplateProviderHelper
This class does the actual work of retrieving templates using the Broker. It is called by both BrokerTemplateProvider and TemplateProvider.
Provider
,
TemplateProvider
,
BrokerTemplateProvider
Constructor Summary | |
BrokerTemplateProviderHelper()
|
Method Summary | |
void |
init(Broker b,
Settings config)
Create a new TemplateProvider that uses the specified directory as the source for Template objects that it will return |
java.lang.Object |
load(java.lang.Object query,
CacheElement ce)
We don't implement this one |
java.lang.Object |
load(java.lang.String name,
CacheElement ce)
Grab a template based on its name. |
void |
setReload(boolean reload)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BrokerTemplateProviderHelper()
Method Detail |
public void init(Broker b, Settings config) throws InitException
init
in interface ResourceLoader
InitException
- provider failed to initializepublic final java.lang.Object load(java.lang.String name, CacheElement ce) throws ResourceException
load
in interface ResourceLoader
ResourceException
public java.lang.Object load(java.lang.Object query, CacheElement ce) throws ResourceException
load
in interface ResourceLoader
ResourceException
public void setReload(boolean reload)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |