|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectobixserver.module.external.AbstractExternalModule
public abstract class AbstractExternalModule
This is the abstract external module that external modules usually extend. It implements most functionality that is common for all modules.
| Field Summary | |
|---|---|
protected obix.Obj |
baseObj
Base Obj of this module. |
private static Logger |
logger
|
private String |
path
Leaf of the base URL of the module. |
protected Properties |
properties
Properties configured during load that can be read during initialization and execution of the module. |
protected obix.net.ObixSession |
session
Obix session for this moduel. |
| Constructor Summary | |
|---|---|
AbstractExternalModule()
|
|
AbstractExternalModule(String base)
|
|
| Method Summary | |
|---|---|
protected void |
createObj(obix.Obj obj)
|
String |
getHome()
|
protected String |
getProperty(String name)
|
void |
init(obix.Obj parent)
Initialize the module. |
void |
setBaseObj(obix.Obj obj)
|
void |
setHome(String path)
Sets path for root of the subtree of oBIX server that this external module will be updating. |
void |
setProperty(String name,
String value)
Sets property for this module. |
void |
setSession(obix.net.ObixSession session)
|
void |
term()
De-initialize/terminate the module. |
protected void |
updateObj(obix.Obj obj)
|
| 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 |
|---|
private static final Logger logger
protected Properties properties
protected obix.net.ObixSession session
protected obix.Obj baseObj
private String path
| Constructor Detail |
|---|
public AbstractExternalModule()
public AbstractExternalModule(String base)
| Method Detail |
|---|
public void init(obix.Obj parent)
ExternalModule
init in interface ExternalModulepublic void setBaseObj(obix.Obj obj)
setBaseObj in interface ExternalModulepublic void term()
ExternalModule
term in interface ExternalModule
public void setProperty(String name,
String value)
ExternalModule
setProperty in interface ExternalModuleprotected String getProperty(String name)
public void setHome(String path)
ExternalModule
setHome in interface ExternalModulepublic String getHome()
getHome in interface ExternalModulepublic void setSession(obix.net.ObixSession session)
setSession in interface ExternalModuleprotected void createObj(obix.Obj obj)
protected void updateObj(obix.Obj obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||