container/common/src/main/java/org/mobicents/slee/container/deployment/jboss/DeployableUnit.java
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) {
    // 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 ) { // 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 .