ContainerUtils { public static boolean isInjectConstructor(Constructor<?> constructor) { boolean constructorBy = constructor.getDeclaredAnnotation(ConstructorBy.class) != null; boolean javaxInjectBy = constructor.getDeclaredAnnotation(javax.inject.Inject.class) != null; return constructorBy || javaxInjectBy; }  static Method findInitMethod(Class<?> targetBeanType, BindInfo<?> bindInfo); static Method findDestroyMethod(Class<?> targetBeanType, BindInfo<?> bindInfo); static Class<T> findImplClass(final Class<?> notSureType); static Annotation findInject(boolean injectDefault, Annotation[] annotations); static boolean isInjectConstructor(Constructor<?> constructor); static Object injSettings(AppContext appContext, InjectSettings injectSettings, Class<?> toType); static void invokeMethod(Object targetBean, Method initMethod); static void invokeField(Field field, Object targetBean, Object newValue); static boolean testAopIgnore(Class<T> targetType, ClassLoader rootLoader);  }
@Test public void testInject4() { assert !ContainerUtils.isInjectConstructor(PropertyPojoBeanRef.class.getConstructors()[0]); assert ContainerUtils.isInjectConstructor(SingleConstructorPojoBeanRef.class.getConstructors()[0]); assert ContainerUtils.isInjectConstructor(Jsr330ConstructorRef.class.getConstructors()[0]); }