Package java.util

Examples of java.util.HashSet.addAll()


            return jellyContext.getVariable(key);
        }

        public Object[] getKeys() {
            HashSet keys = new HashSet(jellyContext.getVariables().keySet());
            keys.addAll(privateContext.keySet());
            return keys.toArray();
        }

        public Object put(String key, Object value) {
            if (key == null || value == null) {
View Full Code Here


     */
    public Object createProxy(Object target) {
        Set ifaces = new HashSet();
        Class clazz = target.getClass();
        do {
            ifaces.addAll(Arrays.asList(clazz.getInterfaces()));
            clazz = clazz.getSuperclass();
        } while (clazz != null);
        return Proxy.newProxyInstance(InvocationCounter.class.getClassLoader(),
                (Class[])ifaces.toArray(new Class[ifaces.size()]), new InvocationHandlerImpl(target));
    }
View Full Code Here

    }
  }
 
  public String[] listAll() throws IOException {
    Set files = new HashSet();
    files.addAll(Arrays.asList(primaryDir.listAll()));
    files.addAll(Arrays.asList(secondaryDir.listAll()));
    return (String[]) files.toArray(new String[files.size()]);
  }
 
  public String[] list() throws IOException {
View Full Code Here

  }
 
  public String[] listAll() throws IOException {
    Set files = new HashSet();
    files.addAll(Arrays.asList(primaryDir.listAll()));
    files.addAll(Arrays.asList(secondaryDir.listAll()));
    return (String[]) files.toArray(new String[files.size()]);
  }
 
  public String[] list() throws IOException {
    return listAll();
View Full Code Here

                ServiceEndpointMethodMappingType[] methodMappings = portInfo.getServiceEndpointInterfaceMapping().getServiceEndpointMethodMappingArray();
                ServiceEndpointMethodMappingType methodMapping = WSDescriptorParser.getMethodMappingForOperation(operationName, methodMappings);
                JavaXmlTypeMappingType[] javaXmlTypeMappingTypes = portInfo.getJavaWsdlMapping().getJavaXmlTypeMappingArray();
                operationDescBuilder = new HeavyweightOperationDescBuilder(bindingOperation, portInfo.getJavaWsdlMapping(), methodMapping, portStyle, exceptionMap, portInfo.getSchemaInfoBuilder(), javaXmlTypeMappingTypes, classLoader, serviceEndpointInterface);
                Set wrappedElementQNamesForOper = ((HeavyweightOperationDescBuilder) operationDescBuilder).getWrapperElementQNames();
                wrappedElementQNames.addAll(wrappedElementQNamesForOper);
            }

            operations.add(operationDescBuilder.buildOperationDesc());
        }
View Full Code Here

    public Set getInstances() {
        synchronized (factoryLock) {
            Set logs = new HashSet();
            for (Iterator iterator = instancesByClassLoader.values().iterator(); iterator.hasNext();) {
                Map instanceMap = ((Map) iterator.next());
                logs.addAll(instanceMap.values());

            }
            return logs;
        }
    }
View Full Code Here

            ServiceEndpointMethodMappingType methodMapping = WSDescriptorParser.getMethodMappingForOperation(operationName, methodMappings);
            HeavyweightOperationDescBuilder operationDescBuilder = new HeavyweightOperationDescBuilder(bindingOperation, mapping, methodMapping, portStyle, exceptionMap, schemaInfoBuilder, javaXmlTypeMappings, classLoader, enhancedServiceEndpointClass);
            OperationInfo operationInfo = operationDescBuilder.buildOperationInfo(soapVersion);
            operationInfos[i++] = operationInfo;
            operationDescs.add(operationInfo.getOperationDesc());
            wrapperElementQNames.addAll(operationDescBuilder.getWrapperElementQNames());
            hasEncoded |= operationDescBuilder.isEncoded();
        }
        HeavyweightTypeInfoBuilder builder = new HeavyweightTypeInfoBuilder(classLoader, schemaInfoBuilder.getSchemaTypeKeyToSchemaTypeMap(), wrapperElementQNames, operationDescs, hasEncoded);
        List typeInfo = builder.buildTypeInfo(mapping);
View Full Code Here

    public Set listGBeans(Set patterns) {
        Set gbeans = new HashSet();
        for (Iterator iterator = patterns.iterator(); iterator.hasNext();) {
            ObjectName pattern = (ObjectName) iterator.next();
            gbeans.addAll(listGBeans(pattern));
        }
        return gbeans;
    }

    public Set listGBeans(String[] patterns) {
View Full Code Here

        for(int i=0; i<patterns.length; i++) {
            ObjectName pattern = null;
            try {
                pattern = ObjectName.getInstance(patterns[i]);
            } catch (MalformedObjectNameException e) {}
            gbeans.addAll(listGBeans(pattern));
        }
        return gbeans;
    }

    public Set listGBeansByInterface(String[] interfaces) {
View Full Code Here

     * @return a List of javax.management.ObjectName of matching GBeans registered with this kernel
     */
    public Set listGBeans(GBeanQuery query) {
        Set results = new HashSet();
        if(query.getGBeanNames() != null && query.getGBeanNames().length > 0) {
            results.addAll(listGBeans(query.getGBeanNames()));
        }
        if(query.getInterfaces() != null && query.getInterfaces().length > 0) {
            results.addAll(listGBeansByInterface(query.getInterfaces()));
        }
        return results;
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.