Package java.util

Examples of java.util.Map.keySet()


        } else {
            Class beanClass = autowireTo.controllerClass();
            if ((beanClass != null) & (!AutowireToController.class.equals(beanClass))) {
                Map controllers = context.getBeansOfType(beanClass);
                if (controllers != null) {
                    for (Object controllerName : controllers.keySet()) {
                        AdvisableController controller = (AdvisableController) controllers.get(controllerName);
                        if (log.isInfoEnabled()) log.info("Wiring request handler bean " + bean + " to controller \"" + controllerName + "\"");
                        controller.addRequestHandler(bean);
                    }
                }
View Full Code Here


    }
   
    private void configureRequestHandlers(ApplicationContext context) {
        log.info("AnnotationUrlHandlerMapping started configuring request handlers");
        Map beans = context.getBeansOfType(RequestHandler.class);
        log.info("Got request handlers " + beans.keySet().size());
        if (beans != null) {
            for (Object beanName : beans.keySet()) {
                log.info("Processing " + beanName);
                RequestHandler requestHandler = (RequestHandler) beans.get(beanName);
                log.info("Obtained " + requestHandler);
View Full Code Here

    private void configureRequestHandlers(ApplicationContext context) {
        log.info("AnnotationUrlHandlerMapping started configuring request handlers");
        Map beans = context.getBeansOfType(RequestHandler.class);
        log.info("Got request handlers " + beans.keySet().size());
        if (beans != null) {
            for (Object beanName : beans.keySet()) {
                log.info("Processing " + beanName);
                RequestHandler requestHandler = (RequestHandler) beans.get(beanName);
                log.info("Obtained " + requestHandler);
                AutowireToController autowireTo = ClassUtils.getAnnotation(AutowireToController.class, requestHandler);
                log.info("Autowire? " + autowireTo);
View Full Code Here

   
    private void configureValidators(ApplicationContext context) {
        log.info("AnnotationUrlHandlerMapping started configuring validators");
        Map beans = context.getBeansOfType(ValidatorHolder.class);
        if (beans != null) {
            for (Object beanName : beans.keySet()) {
                if (log.isDebugEnabled()) log.debug("Found validator holder " + beanName);
                ValidatorHolder holder = (ValidatorHolder) beans.get(beanName);
                Map validatorBeans = context.getBeansOfType(Validator.class);
                for (Object validatorBeanName : validatorBeans.keySet()) {
                    if (log.isDebugEnabled()) log.debug("Found validator " + validatorBeanName);
View Full Code Here

        if (beans != null) {
            for (Object beanName : beans.keySet()) {
                if (log.isDebugEnabled()) log.debug("Found validator holder " + beanName);
                ValidatorHolder holder = (ValidatorHolder) beans.get(beanName);
                Map validatorBeans = context.getBeansOfType(Validator.class);
                for (Object validatorBeanName : validatorBeans.keySet()) {
                    if (log.isDebugEnabled()) log.debug("Found validator " + validatorBeanName);
                    holder.addValidator(validatorBeans.get(validatorBeanName));
                    if (log.isDebugEnabled()) log.debug("Adding validator " + validatorBeanName + " to " + beanName);
                }
            }
View Full Code Here

      UISWTInstanceImpl uiSWTinstance = (UISWTInstanceImpl) UIFunctionsManagerSWT.getUIFunctionsSWT().getUISWTInstance();
      Map pluginViews = null;
      pluginViews = uiSWTinstance.getViewListeners(UISWTInstance.VIEW_TOPBAR);
      if (pluginViews != null) {
        String[] sNames = (String[]) pluginViews.keySet().toArray(new String[0]);
        for (int i = 0; i < sNames.length; i++) {
          UISWTViewEventListener l = (UISWTViewEventListener) pluginViews.get(sNames[i]);
          if (l != null) {
            try {
              UISWTViewImpl view = new UISWTViewImpl(UISWTInstance.VIEW_TOPBAR,
View Full Code Here

    {
      report = subReportStorage.restore(functionStorageKey);
      final ElementStyleSheet subreportStyle = subreportFromMarker.getStyle();
      final Map styleExpressions = subreportFromMarker.getStyleExpressions();
      final StyleKey[] definedStyle =
          (StyleKey[]) styleExpressions.keySet().toArray(new StyleKey[styleExpressions.size()]);
      for (int i = 0; i < definedStyle.length; i++)
      {
        final StyleKey styleKey = definedStyle[i];
        report.getStyle().setStyleProperty(styleKey, subreportStyle.getStyleProperty(styleKey));
      }
View Full Code Here

               if (fixIt) {
                  map.remove(refId.longValue());
               }
            }
         }
         Iterator noCallbackRefIt = notFoundInCallbackQueue.keySet().iterator();
         while (noCallbackRefIt.hasNext()) {
            Long refId = (Long)noCallbackRefIt.next();
            if (!foundInHistoryQueue.containsKey(refId)) {
               I_Entry entry = (I_Entry)notFoundInCallbackQueue.get(refId);
               out.write(("\nNot referenced:").getBytes());
View Full Code Here

         sb.append(offset).append("  <arrays>");
         while (it.hasNext()) {
            String key = (String) it.next();
            Map map = get(key, (Map)null);
            key = org.xmlBlaster.util.ReplaceVariable.replaceAll(key, "/", ".");
            Iterator iter = map.keySet().iterator();
            while (iter.hasNext()) {
               String arg = (String) iter.next();
               sb.append(offset).append("    <").append(key).append(" index='").append(arg).append("'>");
               sb.append(org.xmlBlaster.util.ReplaceVariable.replaceAll((String)map.get(arg), "<", "&lt;"));
               sb.append("</").append(key).append(">");
View Full Code Here

        {
            return EMPTY_STRING_ARRAY;
        }
        else
        {
            final Set keys = attributeMap.keySet();
            return (String[])attributeMap.keySet().toArray( new String[ keys.size() ] );
        }
    }

    /**
 
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.