Examples of InjectionPoint


Examples of javax.inject.manager.InjectionPoint

        }
    }

    public static <T> void addFieldInjectionPointMetaData(AbstractComponent<T> owner, Field field)
    {
        InjectionPoint injectionPoint = InjectionPointFactory.getFieldInjectionPointData(owner, field);
        if (injectionPoint != null)
        {
            addImplicitComponentForInjectionPoint(injectionPoint);
            owner.addInjectionPoint(injectionPoint);
        }
View Full Code Here

Examples of org.elasticsearch.common.inject.spi.InjectionPoint

    }

    public static void formatSource(Formatter formatter, Object source) {
        if (source instanceof Dependency) {
            Dependency<?> dependency = (Dependency<?>) source;
            InjectionPoint injectionPoint = dependency.getInjectionPoint();
            if (injectionPoint != null) {
                formatInjectionPoint(formatter, dependency, injectionPoint);
            } else {
                formatSource(formatter, dependency.getKey());
            }
View Full Code Here

Examples of org.grouplens.grapht.reflect.InjectionPoint

     *
     * @param d The desire to test.
     * @return {@code true} if the desire is transient.
     */
    public static boolean desireIsTransient(@Nonnull Desire d) {
        InjectionPoint ip = d.getInjectionPoint();
        return ip.getAttribute(Transient.class) != null;
    }
View Full Code Here

Examples of org.jboss.arquillian.core.spi.InjectionPoint

   private Instance<GenericWildCard<?>> genericWildCardInstance;
  
   @Test
   public void shouldBeAbleToDetermineType() throws Exception
   {
      InjectionPoint point = InjectionPointImpl.of(this, this.getClass().getDeclaredField("instance"));
     
      Assert.assertEquals(InjectionPointImplTestCase.class, point.getType());
   }
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.InjectionPoint

   private Instance<GenericWildCard<?>> genericWildCardInstance;
  
   @Test
   public void shouldBeAbleToDetermineType() throws Exception
   {
      InjectionPoint point = InjectionPointImpl.of(this, this.getClass().getDeclaredField("instance"));
     
      Assert.assertEquals(InjectionPointImplTestCase.class, point.getType());
   }
View Full Code Here

Examples of org.jboss.injection.injector.util.InjectionPoint

   }

   private void inject(Object value, Class<?> cls, Object instance, String name) throws NoSuchPropertyException
   {
      Class<?> valueType = value == null ? null : value.getClass();
      InjectionPoint p = InjectionPointFactory.create(cls, name, valueType);
      p.set(instance, value);
   }
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.