public abstract static class EnginePlugin.GenerateSubObjectHook extends java.lang.Object implements Hook
Modifier and Type | Field and Description |
---|---|
EnginePlugin |
plugin
The plugin instance.
|
Constructor and Description |
---|
GenerateSubObjectHook(EnginePlugin plugin)
Bind the plugin instance to the plugin data member.
|
Modifier and Type | Method and Description |
---|---|
abstract EnginePlugin.SubObjData |
generateSubObject(Template template,
Namespace namespace,
OID masterOid)
Returns a SubObjData instance.
|
boolean |
processMessage(Message m,
int flags)
Generates the sub-object based on the template, namespace
and oid contained in the GenerateSubObjectMessage by
calling the plugin's generateSubObject method, and then
sends the response by calling sendSubObjectResponse().
|
public EnginePlugin plugin
public GenerateSubObjectHook(EnginePlugin plugin)
plugin
- The plugin instance creating the hook.public boolean processMessage(Message m, int flags)
processMessage
in interface Hook
m
- The GenerateSubObjectMessage messageflags
- The message flagspublic abstract EnginePlugin.SubObjData generateSubObject(Template template, Namespace namespace, OID masterOid)
template
- The template used to create the sub-object