Package java.util

Examples of java.util.Set.toArray()


      return;
    }
   
    Set serviceNames = new HashSet();
    computeOSGiServiceNames(obj.getClass(), obj, serviceNames);
    ServiceRegistration registration = Activator.context.registerService((String[]) serviceNames.toArray(new String[serviceNames.size()]), obj, registrationProperties);
    registeredServices.put(objName, registration);
  }

  private void computeOSGiServiceNames(Class beanClass, Object bean, Set registered) {
    if (beanClass == null) {
View Full Code Here


 
 
  public String[] getNames()
  {
    Set keys = params.keySet();
    return (String[])(keys.toArray(new String[keys.size()]));
  }
 
  public Parameter[] getParameterBlock(String key)
  { 
    return (Parameter[])params.get(key);
View Full Code Here

      String source = tableName;
      HashMap map = mdir.getQuryData(target, source);
      searchClause = searchClause + (String)map.get("Search");
      Set tablesName = (Set)map.get("Table");

      Object[] objArray = tablesName.toArray();
      for (int j = 0; j < objArray.length; j++)
      {
        globalSet.add((String)objArray[j]);
      }
View Full Code Here

  }

  public String[] getProperties()
  {
    final Set set = propertyMessages.keySet();
    return (String[]) set.toArray(new String[set.size()]);
  }

  public boolean isEmpty()
  {
    return propertyMessages.isEmpty();
View Full Code Here

        javaClasses.add(clz);

        return new JavaClassCache() {
            public JavaClass[] getClasses() {
                log.trace("createJavaClassCache.getClasses()");
                return (JavaClass[])javaClasses.toArray(new JavaClass[0]);
            }

            public JavaClass getClassByName(final String name) {
                if (log.isTraceEnabled()) {
                    log.trace("createJavaClassCache.getClassByName() name="+name);
View Full Code Here

            tree.add(adds[i].getName());
        }
        for (int i = 0; i < keeps.length; i++) {
            tree.add(keeps[i].getName());
        }
        String[] refs = (String[])tree.toArray(new String[tree.size()]);
       
        // replace private method to return binding classes blob
        m_factoryClass.deleteMethod(CLASSLIST_METHOD_NAME,
            CLASSLIST_METHOD_SIGNATURE);
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
View Full Code Here

        for (Iterator iter = basedirSet.iterator(); iter.hasNext();) {
            String basedir = (String) iter.next();
            bindingSet.addAll(getBindings(basedir + File.separator + this.getDirectory()));
        }

        return (String[]) bindingSet.toArray(new String[bindingSet.size()]);
    }

    /**
     * Returns the classpath for the binding compiler running in multi-module mode.
     */
 
View Full Code Here

            newFiles.remove(key);
         }
      }
      // remove
      if (toRemove != null && toRemove.size() > 0) {
         String[] keys = (String[])toRemove.toArray(new String[toRemove.size()]);
         for (int i=0; i < keys.length; i++) {
            log.warning(ME+": the file '" + keys[i] + "' has apparently been removed from the outside: will not send it. No further action required");
            existingFiles.remove(keys[i]);
         }
      }
View Full Code Here

            newFiles.remove(key);
         }
      }
      // remove
      if (toRemove != null && toRemove.size() > 0) {
         String[] keys = (String[])toRemove.toArray(new String[toRemove.size()]);
         for (int i=0; i < keys.length; i++) {
            log.warning(ME+": the file '" + keys[i] + "' has apparently been removed from the outside: will not send it. No further action required");
            existingFiles.remove(keys[i]);
         }
      }
View Full Code Here

   private void prepareReplSource(boolean doFill) throws XmlBlasterException {
      if (!doFill)
         return;

      Set set = info_.getKeys();
      String[] keys = (String[])set.toArray(new String[set.size()]);
      for (int i=0; i < keys.length; i++)
         connectQos.addClientProperty(keys[i], info_.get(keys[i], null));
      publisher = new XmlBlasterPublisher();
      String oid = null;
      if (publishKey != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.