public boolean hasDependenciesSatisfied(boolean showMissing) {
    // First of all check if it is self-sufficient
    if (isSelfSufficient())
      return true;

    // If not self-sufficient, get the remaining dependencies
    Collection<String> externalDependencies = getExternalDependencies();

    // Remove those that are already installed...
    externalDependencies.removeAll(sleeContainerDeployer.getDeploymentManager().getDeployedComponents());

    // Some remaining?
    if (!externalDependencies.isEmpty()) {
      if (showMissing) {
        // List them to the user...
        String missingDepList = "";

        for (String missingDep : externalDependencies)
          missingDepList += "\r\n +-- " + missingDep;

        logger.info("Missing dependencies for " + this.diShortName
            + ":" + missingDepList);
      }

      // Return dependencies not satified.
      return false;
    }

    // OK, dependencies satisfied!
    return true;
  }
public boolean hasDependenciesSatisfied(boolean showMissing) {
    
    if (isSelfSufficient())
      return true;

    
    Collection<String> externalDependencies = getExternalDependencies();

    
    externalDependencies.removeAll(sleeContainerDeployer.getDeploymentManager().getDeployedComponents());

    
    if (!externalDependencies.isEmpty()) {
      if (showMissing) {
        
        String missingDepList = "";

        for (String missingDep : externalDependencies)
          missingDepList += "\r\n +-- " + missingDep;

        logger.info("Missing dependencies for " + this.diShortName
            + ":" + missingDepList);
      }

      
      return false;
    }

    
    return true;
  }
public boolean hasDependenciesSatisfied ( boolean showMissing ) { // First of all check if it is self-sufficient
 if ( isSelfSufficient ( ) ) return true ; // If not self-sufficient, get the remaining dependencies
 Collection < String > externalDependencies = getExternalDependencies ( ) ; // Remove those that are already installed...
 externalDependencies . removeAll ( sleeContainerDeployer . getDeploymentManager ( ) . getDeployedComponents ( ) ) ; // Some remaining?
 if ( ! externalDependencies . isEmpty ( ) ) { if ( showMissing ) { // List them to the user...
 String missingDepList = "" ; for ( String missingDep : externalDependencies ) missingDepList += " \ r \ n + -- " + missingDep ; logger . info ( "Missing dependencies for " + this . diShortName + ":" + missingDepList ) ; } // Return dependencies not satified.
 return false ; } // OK, dependencies satisfied!
 return true ; }
Method for checking if the DU has all the dependencies needed to be deployed.
@param showMissing param to set whether to show or not missing dependencies.
@return true if all the dependencies are satisfied.
Method for checking if the DU has all the dependencies needed to be deployed .