in src/java/org/apache/fulcrum/yaafi/framework/container/ServiceContainerImpl.java [575:598]
public boolean hasService(String name) {
Validate.notEmpty(name, "name");
boolean result;
if (this.isCurrentlyDisposing() || this.isAlreadyDisposed()) {
return false;
}
synchronized (this) {
// look at our available service
result = this.getLocalServiceComponent(name) != null;
// look at fallback service managers
if (!result)
result = this.hasFallbackService(name);
}
// if we haven't found anything ask the parent ServiceManager
if (!result && this.hasParentServiceManager())
result = this.getParentServiceManager().hasService(name);
return result;
}