Class InjectionCollection

  • public class InjectionCollection
    extends java.lang.Object
    InjectionCollection Map of classname to all injections requested on that class, whether by declaration in web.xml or via equivalent annotations. This class is not threadsafe for concurrent modifications, but is threadsafe for readers with concurrent modifications.
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String INJECTION_COLLECTION  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Injection injection)  
      Injection getInjection​(java.lang.String jndiName, java.lang.Class<?> clazz, java.lang.reflect.Field field)  
      Injection getInjection​(java.lang.String jndiName, java.lang.Class<?> clazz, java.lang.reflect.Method method, java.lang.Class<?> paramClass)  
      java.util.Set<Injection> getInjections​(java.lang.String className)  
      void inject​(java.lang.Object injectable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail


        public static final java.lang.String INJECTION_COLLECTION
        See Also:
        Constant Field Values
    • Constructor Detail

      • InjectionCollection

        public InjectionCollection()
    • Method Detail

      • add

        public void add​(Injection injection)
      • getInjections

        public java.util.Set<Injection> getInjections​(java.lang.String className)
      • getInjection

        public Injection getInjection​(java.lang.String jndiName,
                                      java.lang.Class<?> clazz,
                                      java.lang.reflect.Field field)
      • getInjection

        public Injection getInjection​(java.lang.String jndiName,
                                      java.lang.Class<?> clazz,
                                      java.lang.reflect.Method method,
                                      java.lang.Class<?> paramClass)
      • inject

        public void inject​(java.lang.Object injectable)