Package org.jboss.injection

Examples of org.jboss.injection.LinkRefEncInjector


         {
            throw new RuntimeException("mapped-name is required for " + envRef.getResourceEnvRefName()
                  + " of deployment " + container.getIdentifier());
         }
         container.getEncInjectors().put(encName,
               new LinkRefEncInjector(encName, envRef.getMappedName(), "<resource-ref>"));
         InjectionUtil.injectionTarget(encName, envRef, container, container.getEncInjections());
      }
   }
View Full Code Here


            if (jndiName == null || jndiName.equals(""))
               throw new RuntimeException("mapped-name is required for " + envRef.getMessageDestinationRefName()
                     + " of deployment " + container.getIdentifier());
         }
         container.getEncInjectors().put(encName,
               new LinkRefEncInjector(encName, jndiName, "<message-destination-ref>"));
         InjectionUtil.injectionTarget(encName, envRef, container, container.getEncInjections());
      }
   }
View Full Code Here

      {
         createURLInjector(encName, mappedName, container);
      }
      else
      {
         container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, ref.mappedName(), "@Resource"));
      }
   }
View Full Code Here

                  mappedName = "java:comp/ORB";
               else
                  throw new RuntimeException("You did not specify a @Resource.mappedName() on " + accObj
                        + " and there is no binding for enc name " + encName + " in XML");
            }
            container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, mappedName, "@Resource"));
         }
         injectors.put(accObj, new JndiPropertyInjector(property, encName, container.getEnc()));
      }
   }
View Full Code Here

               throw new RuntimeException("mapped-name is required for " + envRef.getResourceRefName() + " of deployment " + container.getIdentifier());
            }
         }
         else
         {
            container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, envRef.getMappedName(), "<resource-ref>"));
         }
         InjectionUtil.injectionTarget(encName, envRef, container, container.getEncInjections());
      }
   }
View Full Code Here

         if (container.getEncInjectors().containsKey(encName)) continue;
         if (mappedName == null || mappedName.equals(""))
         {
            throw new RuntimeException("mapped-name is required for " + envRef.getResourceEnvRefName() + " of deployment " + container.getIdentifier());
         }
         container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, mappedName, "<resource-ref>"));
         InjectionUtil.injectionTarget(encName, envRef, container, container.getEncInjections());
      }
   }
View Full Code Here

            {
               throw new RuntimeException("message-destination has no jndi-name/resolved-jndi-name " + envRef);
               // TODO: add dependency
            }
         }
         container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, jndiName, "<message-destination-ref>"));
         InjectionUtil.injectionTarget(encName, envRef, container, container.getEncInjections());
      }
   }
View Full Code Here

      {
         createURLInjector(encName, mappedName, container);
      }
      else
      {
         container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, ref.mappedName(), "@Resource"));
      }
   }
View Full Code Here

               else if(EJBContext.class.isAssignableFrom(type))
                  mappedName = "java:comp/EJBContext";
               else
                  throw new RuntimeException("You did not specify a @Resource.mappedName() on " + accObj + " and there is no binding for enc name " + encName + " in XML");
            }
            container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, mappedName, "@Resource"));
         }
         injectors.put(accObj, new JndiPropertyInjector(property, encName, container.getEnc()));
      }     
   }
View Full Code Here

TOP

Related Classes of org.jboss.injection.LinkRefEncInjector

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.