public class TemplatingManager extends Object implements net.roboconf.dm.management.events.IDmListener
| Constructor and Description |
|---|
TemplatingManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
application(net.roboconf.core.model.beans.Application application,
net.roboconf.core.model.runtime.EventType eventType) |
void |
applicationTemplate(net.roboconf.core.model.beans.ApplicationTemplate tpl,
net.roboconf.core.model.runtime.EventType eventType) |
void |
bindManager(net.roboconf.dm.management.Manager dm)
Binds the DM.
|
void |
disableNotifications() |
void |
enableNotifications() |
String |
getId() |
void |
instance(net.roboconf.core.model.beans.Instance instance,
net.roboconf.core.model.beans.Application application,
net.roboconf.core.model.runtime.EventType eventType) |
void |
processNewTemplates(Collection<TemplateEntry> newTemplates)
Processes new templates.
|
void |
raw(String message,
Object... data) |
void |
setOutputDirectory(String outputDirectory)
Sets the output directory.
|
void |
setPollInterval(long pollInterval)
Sets the poll interval for the template watcher.
|
void |
setTemplatesDirectory(String templatesDirectory)
Sets the templates directory.
|
void |
start()
Starts the templating manager (invoked by iPojo).
|
void |
stop()
Stops the templating manager (invoked by iPojo).
|
void |
unbindManager(net.roboconf.dm.management.Manager dm)
Unbinds the DM.
|
public static final String ID
public void setPollInterval(long pollInterval)
pollInterval - the poll interval, in milliseconds, for the template watcherpublic void setTemplatesDirectory(String templatesDirectory)
templatesDirectory - the templates directorypublic void setOutputDirectory(String outputDirectory)
outputDirectory - the output directorypublic void bindManager(net.roboconf.dm.management.Manager dm)
dm - public void unbindManager(net.roboconf.dm.management.Manager dm)
dm - public void start()
public void stop()
public String getId()
getId in interface net.roboconf.dm.management.events.IDmListenerpublic void application(net.roboconf.core.model.beans.Application application,
net.roboconf.core.model.runtime.EventType eventType)
application in interface net.roboconf.dm.management.events.IDmListenerpublic void applicationTemplate(net.roboconf.core.model.beans.ApplicationTemplate tpl,
net.roboconf.core.model.runtime.EventType eventType)
applicationTemplate in interface net.roboconf.dm.management.events.IDmListenerpublic void instance(net.roboconf.core.model.beans.Instance instance,
net.roboconf.core.model.beans.Application application,
net.roboconf.core.model.runtime.EventType eventType)
instance in interface net.roboconf.dm.management.events.IDmListenerpublic void raw(String message, Object... data)
raw in interface net.roboconf.dm.management.events.IDmListenerpublic void enableNotifications()
enableNotifications in interface net.roboconf.dm.management.events.IDmListenerpublic void disableNotifications()
disableNotifications in interface net.roboconf.dm.management.events.IDmListenerpublic void processNewTemplates(Collection<TemplateEntry> newTemplates)
They are applied to all the applications, provided they match the criteria defined by the template files.
newTemplates - a non-null list of templatesCopyright © 2017. All rights reserved.