Search in sources :

Example 1 with ConfigProperty

use of org.apache.deltaspike.core.api.config.ConfigProperty in project deltaspike by apache.

the class ConfigurationExtension method collectDynamicTypes.

public void collectDynamicTypes(@Observes ProcessBean<?> processBean) {
    for (final InjectionPoint ip : processBean.getBean().getInjectionPoints()) {
        final ConfigProperty annotation = ip.getAnnotated().getAnnotation(ConfigProperty.class);
        if (annotation == null || annotation.converter() == ConfigResolver.Converter.class) {
            continue;
        }
        dynamicConfigTypes.add(ip.getType());
    }
}
Also used : InjectionPoint(javax.enterprise.inject.spi.InjectionPoint) ConfigProperty(org.apache.deltaspike.core.api.config.ConfigProperty)

Aggregations

InjectionPoint (javax.enterprise.inject.spi.InjectionPoint)1 ConfigProperty (org.apache.deltaspike.core.api.config.ConfigProperty)1