76 |
|
|
77 |
|
_logger.write(toString(), Logger.SYSINIT, "started"); |
78 |
|
} |
79 |
< |
|
79 |
> |
|
80 |
> |
/** |
81 |
> |
* Does a dependency check. Used mainly at startup to |
82 |
> |
* see if the required dependencies (components) are up |
83 |
> |
* and running. |
84 |
> |
* |
85 |
> |
* @return a boolean value, true if the depdencies are satisfied |
86 |
> |
*/ |
87 |
> |
public boolean depCheck() { |
88 |
> |
try { |
89 |
> |
org.omg.CORBA.Object obj; |
90 |
> |
obj = _refman.getCORBARef("iscream.Logger"); |
91 |
> |
obj = _refman.getCORBARef("iscream.ConfigurationManager"); |
92 |
> |
} catch(ComponentCORBAException e) { |
93 |
> |
_logger.write(toString(), Logger.WARNING, "Dependency Failure: "+e); |
94 |
> |
return false; |
95 |
> |
} |
96 |
> |
// dependency check suceeded |
97 |
> |
return true; |
98 |
> |
} |
99 |
> |
|
100 |
|
/** |
101 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
102 |
|
* method to provide clean logging (every class should have this). |