Examples of clazz()


Examples of com.google.wave.api.JsonRpcConstant.ParamsProperty.clazz()

        } else if (parameterType == ParamsProperty.WAVELET_IDS) {
          object = context.deserialize(parameter.getValue(), GsonFactory.WAVELET_ID_LIST_TYPE);
        } else if (parameterType == ParamsProperty.RAW_DELTAS) {
          object = context.deserialize(parameter.getValue(), GsonFactory.RAW_DELTAS_TYPE);
        } else {
          object = context.deserialize(parameter.getValue(), parameterType.clazz());
        }
        properties.put(parameterType, object);
      }
    }
View Full Code Here

Examples of com.google.wave.api.JsonRpcConstant.ParamsProperty.clazz()

      if (parameterType != null) {
        Object object;
        if (parameterType == ParamsProperty.RAW_DELTAS) {
          object = ctx.deserialize(parameter.getValue(), GsonFactory.RAW_DELTAS_TYPE);
        } else {
          object = ctx.deserialize(parameter.getValue(), parameterType.clazz());
        }
        request.addParameter(Parameter.of(parameterType, object));
      }
    }
View Full Code Here

Examples of com.google.wave.api.JsonRpcConstant.ParamsProperty.clazz()

      Object object = null;
      if (parameterType == ParamsProperty.BLIPS) {
        Type blipMapType = new TypeToken<Map<String, BlipData>>(){}.getType();
        object = context.deserialize(parameter.getValue(), blipMapType);
      } else {
        object = context.deserialize(parameter.getValue(), parameterType.clazz());
      }
      properties.put(parameterType, object);
    }

    return JsonRpcResponse.result(id, properties);
View Full Code Here

Examples of com.google.wave.api.JsonRpcConstant.ParamsProperty.clazz()

        getPropertyAsStringThenRemove(parameters, ParamsProperty.WAVELET_ID),
        getPropertyAsStringThenRemove(parameters, ParamsProperty.BLIP_ID));

    for (Entry<String, JsonElement> parameter : parameters.entrySet()) {
      ParamsProperty parameterType = ParamsProperty.fromKey(parameter.getKey());
      Object object = ctx.deserialize(parameter.getValue(), parameterType.clazz());
      request.addParameter(Parameter.of(parameterType, object));
    }

    return request;
  }
View Full Code Here

Examples of com.google.wave.api.JsonRpcConstant.ParamsProperty.clazz()

            parameterType == ParamsProperty.PARTICIPANTS_REMOVED) {
          object = context.deserialize(parameter.getValue(), GsonFactory.PARTICIPANT_LIST_TYPE);
        } else if (parameterType == ParamsProperty.THREADS) {
          object = context.deserialize(parameter.getValue(), GsonFactory.THREAD_MAP_TYPE);
        } else {
          object = context.deserialize(parameter.getValue(), parameterType.clazz());
        }
        properties.put(parameterType, object);
      }
    }
View Full Code Here

Examples of com.google.wave.api.JsonRpcConstant.ParamsProperty.clazz()

        getPropertyAsStringThenRemove(parameters, ParamsProperty.BLIP_ID));

    for (Entry<String, JsonElement> parameter : parameters.entrySet()) {
      ParamsProperty parameterType = ParamsProperty.fromKey(parameter.getKey());
      if (parameterType != null) {
        Object object = ctx.deserialize(parameter.getValue(), parameterType.clazz());
        request.addParameter(Parameter.of(parameterType, object));
      }
    }

    return request;
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.annotation.PageBean.clazz()

                    {
                        facesConfig = new org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl();
                    }
                    org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
                        org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
                    bean.setBeanClass(annoPageBean.clazz().getName());
                    bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
                    bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
                    bean.setEager(Boolean.toString(annoPageBean.eager()));

                    ((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.annotation.PageBean.clazz()

                        facesConfig = new org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl();
                    }
                    org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
                        org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
                    bean.setBeanClass(annoPageBean.clazz().getName());
                    bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
                    bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
                    bean.setEager(Boolean.toString(annoPageBean.eager()));

                    ((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
                        addManagedBean(bean);
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.annotation.PageBean.clazz()

                    {
                        facesConfig = new org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl();
                    }
                    org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
                        org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
                    bean.setBeanClass(annoPageBean.clazz().getName());
                    bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
                    bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
                    bean.setEager(Boolean.toString(annoPageBean.eager()));

                    ((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.annotation.PageBean.clazz()

                        facesConfig = new org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl();
                    }
                    org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
                        org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
                    bean.setBeanClass(annoPageBean.clazz().getName());
                    bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
                    bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
                    bean.setEager(Boolean.toString(annoPageBean.eager()));

                    ((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
                        addManagedBean(bean);
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.