public ConfiguredFieldProcessor(ConfigurationRepository configuration, ConfiguredMetadata annotations, ConfigurationTarget parent2) { super(annotations.getConfiguredAnnotations()); this.configuration = configuration; this.defaultSeeds = annotations.getDefaultSeeds(); this.parent = parent2; }
@Override public boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException { if (metadata.typeIsConfigured(bean.getClass())) { processor.process(bean); } return true; }
public boolean typeIsConfigured(Class<?> type) { if (metdataResolverRegistry .does(type) .haveAnyFieldsMetaAnnotatedWith(getConfiguredAnnotations())) return true; if (metdataResolverRegistry .does(type) .haveAnyMethodsMetaAnnotatedWith(getConfiguredLifecycleAnnotations())) return true; return false; }
@Override public <I> void hear(TypeLiteral<I> type, TypeEncounter<I> encounter) { if (annotations != null) // happens when encountering framework types if (annotations.typeIsConfigured(type.getRawType())) { if (membersInjector == null) throw new AssertionError("On hearing " + type + " found that " + getClass().getSimpleName() + " was not injected with a " + ConfiguredInjector.class.getSimpleName()); encounter.register(membersInjector); log.debug("encountering {} registering injector {}", type, membersInjector); } }
@Override public boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException { if (metadata.typeIsConfigured(bean.getClass())) { processor.process(bean); } return true; }
@Override public boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException { if (annotations.typeIsConfigured(bean.getClass())) { processor.process(bean); } return true; }