|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobixserver.module.AbstractBaseModule
public abstract class AbstractBaseModule
This is the abstract base class modules usually extend. It implements most functionality that is common for all modules.
Field Summary | |
---|---|
private String |
base
Leaf of the base URL of the module. |
private obix.Obj |
baseObj
Base Obj of this module. |
private ObjBroker |
objBroker
ObjBroker for module access. |
private String |
objResource
Resource to load this modules Obj tree from. |
protected Properties |
properties
Properties configured during load that can be read during initialization and execution of the module. |
Constructor Summary | |
---|---|
AbstractBaseModule()
|
|
AbstractBaseModule(String base)
|
Method Summary | |
---|---|
String |
getBase()
Return base for this module. |
obix.Obj |
getBaseObj()
|
ObjBroker |
getObjBroker()
Returns ObjBroker. |
String |
getObjResource()
Returns obj resource for auto-loading. |
protected String |
getProperty(String name)
|
void |
init(obix.Obj parent)
Initialize the module. |
protected obix.Obj |
loadObjFromResource(obix.Obj parent)
Utility function: loads resources from an XML file, using module settings such as ObjResource and base. |
void |
setBase(String base)
Sets base for this module - this is the leaf of the href of the base Obj of the module. |
void |
setBaseObj(obix.Obj baseObj)
|
void |
setObjBroker(ObjBroker objBroker)
Sets ObjBroker. |
void |
setObjResource(String objResource)
Sets resource for auto-loading of Objs into repository. |
void |
setProperty(String name,
String value)
Sets property for this module. |
void |
term()
De-initialize/terminate the module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface obixserver.core.Service |
---|
start, stop |
Field Detail |
---|
protected Properties properties
private ObjBroker objBroker
private String base
private obix.Obj baseObj
private String objResource
Constructor Detail |
---|
public AbstractBaseModule()
public AbstractBaseModule(String base)
Method Detail |
---|
public String getObjResource()
Module
getObjResource
in interface Module
public void setObjResource(String objResource)
Module
setObjResource
in interface Module
public String getBase()
Module
getBase
in interface Module
public void setBase(String base)
Module
setBase
in interface Module
public void init(obix.Obj parent)
Module
init
in interface Module
parent
- TODOprotected obix.Obj loadObjFromResource(obix.Obj parent)
public void term()
Module
term
in interface Module
public ObjBroker getObjBroker()
Module
getObjBroker
in interface Module
public void setObjBroker(ObjBroker objBroker)
Module
setObjBroker
in interface Module
public obix.Obj getBaseObj()
public void setBaseObj(obix.Obj baseObj)
public void setProperty(String name, String value)
Module
setProperty
in interface Module
protected String getProperty(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |