Package org.jboss.resteasy.core

Examples of org.jboss.resteasy.core.StringParameterInjector


    * @param id String form of entity identifier
    * @return entity identifier
    */
   private T2 unmarshallId(String id)
   {
      StringParameterInjector injector = new StringParameterInjector(getEntityIdClass(), getEntityIdClass(), "id", PathParam.class, null, null, new Annotation[] {pathParamAnnotation}, SeamResteasyProviderFactory.getInstance());
      return (T2) injector.extractValue(id);
   }
View Full Code Here


   public void shouldInjectForAnnotationConfiguredUnmarshaller() throws Exception
   {
      ResteasyProviderFactory.pushContext(Injected.class, new Injected(MY_SPECIAL_STRING));

      Field declaredField = MyType.class.getDeclaredField("name");
      StringParameterInjector injector = new StringParameterInjector(String.class, String.class, "name",
              MyType.class, null, declaredField,
              declaredField.getAnnotations(), new ResteasyProviderFactory());

      assertSame(MY_SPECIAL_STRING, injector.extractValue("ignored"));
   }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.core.StringParameterInjector

Copyright © 2018 www.massapicom. 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.