static WebServiceRef createWebServiceRefFromResource ( Resource resource , Class < ? > typeClass , String jndiName ) throws InjectionException { // notice we send in 'Service.class' for the 'value' attribute, this is // because only service type injections are possible with the @Resource // annotation, so we'll use the default value for the 'value' attribute. return new WebServiceRefSimulator ( resource . mappedName ( ) , jndiName , typeClass , Service . class , null , "" ) ; }
This creates an