public Collection<DependencyMetaData> getBindDependencies() { Collection<DependencyMetaData> dependencies = new ArrayList<DependencyMetaData>(); for (Resource encBinding : this.bindings.values()) { Object dependency = encBinding.getDependency(); if (dependency != null) { DependencyMetaData mcDependency = new SwitchBoardDependencyMetaData( this, dependency, ControllerState.START, ControllerState.INSTALLED); dependencies.add(mcDependency); } } return dependencies; }
public Collection<DependencyMetaData> getInvocationDependencies() { Collection<DependencyMetaData> invocationDependencies = new ArrayList<DependencyMetaData>(); for (Resource encBinding : this.bindings.values()) { Collection<?> deps = encBinding.getInvocationDependencies(); if (deps != null) { for (Object dependency : deps) { if (dependency == null) { continue; } DependencyMetaData mcDependency = new SwitchBoardDependencyMetaData( this, dependency, ControllerState.INSTALLED, ControllerState.INSTALLED); invocationDependencies.add(mcDependency); } } } return invocationDependencies; }