@Vetoed final class ApplicationScopedLiteral extends AnnotationLiteral<ApplicationScoped> implements ApplicationScoped { static final ApplicationScoped APPLICATION_SCOPED = new ApplicationScopedLiteral(); private static final long serialVersionUID = 1L; private ApplicationScopedLiteral() { } }
@Vetoed final class AnyLiteral extends AnnotationLiteral<Any> implements Any { static final Any ANY = new AnyLiteral(); private static final long serialVersionUID = 1L; private AnyLiteral() { } }
@Vetoed final class CdiTypeConverterLoader extends AnnotationTypeConverterLoader { CdiTypeConverterLoader() { super(null); } @Override protected void loadConverterMethods(TypeConverterRegistry registry, Class<?> type) { super.loadConverterMethods(registry, type); } }
@Vetoed final class DefaultLiteral extends AnnotationLiteral<Default> implements Default { static final Default DEFAULT = new DefaultLiteral(); private static final long serialVersionUID = 1L; private DefaultLiteral() { } }
@Vetoed final class Literal extends AnnotationLiteral<Startup> implements Startup { static final Startup STARTUP = new Literal(); private Literal() { } } }
@Vetoed final class ExcludedLiteral extends AnnotationLiteral<Excluded> implements Excluded { } }
@Vetoed final class NamedLiteral extends AnnotationLiteral<Named> implements Named { private static final long serialVersionUID = 1L; private final String name; private NamedLiteral(String name) { this.name = name; } public static Named of(String name) { return new NamedLiteral(name); } @Override public String value() { return name; } }
/** * CDI {@link org.apache.camel.CamelContext} class that can be extended * to declare custom Camel context beans. Camel CDI is capable of managing * any bean that implements {@code org.apache.camel.CamelContext}, * so that directly extending {@link org.apache.camel.impl.DefaultCamelContext} * is an option to avoid having to depend on Camel CDI specific API, e.g.: * * <pre><code> * {@literal @}ApplicationScoped * {@literal @}ContextName("foo") * public class FooCamelContext extends DefaultCamelContext { * } * </code></pre> */ @Vetoed public class CdiCamelContext extends DefaultCamelContext { }
/** * A {@link CamelContextNameStrategy} for Camel contexts that are managed by Camel CDI. * * As opposed to {@link org.apache.camel.impl.DefaultCamelContextNameStrategy}, * this implementation does not increment the suffix for proxies that are created * each time a contextual reference to a normal-scoped bean is retrieved. * * It is used by Camel CDI for custom Camel context beans that do not override * the context name nor the naming strategy. * * @see CamelContextNameStrategy */ @Vetoed final class CdiCamelContextNameStrategy extends DefaultCamelContextNameStrategy implements CamelContextNameStrategy { private static final AtomicInteger CONTEXT_COUNTER = new AtomicInteger(0); @Override public String getNextName() { return "camel" + "-" + CONTEXT_COUNTER.incrementAndGet(); } }
@Vetoed final class BeanManagerHelper { private BeanManagerHelper() { } static <T> Set<T> getReferencesByType(BeanManager manager, Class<T> type, Annotation... qualifiers) { return manager.getBeans(type, qualifiers).stream() .map(bean -> getReference(manager, type, bean)) .collect(toSet()); } static <T> Optional<T> getReferenceByName(BeanManager manager, String name, Class<T> type) { return Optional.of(manager.getBeans(name)) .map(manager::resolve) .map(bean -> getReference(manager, type, bean)); } static <T> Optional<T> getReferenceByType(BeanManager manager, Class<T> type, Annotation... qualifiers) { return Optional.of(manager.getBeans(type, qualifiers)) .map(manager::resolve) .map(bean -> getReference(manager, type, bean)); } static <T> T getReference(BeanManager manager, Class<T> type, Bean<?> bean) { return type.cast(manager.getReference(bean, type, manager.createCreationalContext(bean))); } }
@Vetoed final class ResourceHelper {
@Vetoed final class CdiCamelEnvironment {
@Vetoed private static class AnyEvent { @Any @Inject private Event<Object> event; }
@Vetoed class SyntheticInjectionTarget<T> implements InjectionTarget<T> {
@Vetoed final class CdiCamelRegistry implements Registry {
@Vetoed final class SyntheticAnnotated implements Annotated {
@Vetoed final class CdiCamelBeanPostProcessor extends DefaultCamelBeanPostProcessor {
@Vetoed public class Main extends MainSupport {
@Vetoed final class CdiSpiHelper {
@Vetoed @Deprecated public final class RoutesXml {