|
|||||||||||
| 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 ResourceLoaderInitException - provider failed to initialize
public final java.lang.Object load(java.lang.String name,
CacheElement ce)
throws ResourceException
load in interface ResourceLoaderResourceException
public java.lang.Object load(java.lang.Object query,
CacheElement ce)
throws ResourceException
load in interface ResourceLoaderResourceExceptionpublic void setReload(boolean reload)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||