Beispiel #1
0
 public boolean isClientOnlyService() {
   if (components == null || components.isEmpty()) {
     return false;
   }
   for (ComponentInfo compInfo : components) {
     if (!compInfo.isClient()) {
       return false;
     }
   }
   return true;
 }
Beispiel #2
0
  public ComponentInfo getClientComponent() {
    ComponentInfo client = null;

    if (components != null) {
      for (ComponentInfo compInfo : components) {
        if (compInfo.isClient()) {
          client = compInfo;
          break;
        }
      }
    }
    return client;
  }