private BeanManager beanManager; @Qualifier @Retention(RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE})
public static class JaxRsParamProducer { @Qualifier @Retention(RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE})
@Qualifier private @interface GenerateTokenFilterTest {}
@Qualifier @Retention(RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE})
@Qualifier @Retention(RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE})
@Qualifier private @interface FooName {
@Qualifier @Parameter(Double.class) @Target({ElementType.METHOD, ElementType.PARAMETER})
/** * Binding annotations related to the ApiCallScope. * * <p>Important: This class may only be used in implementing plugins (e.g. functions, directives). * */ public class ApiCallScopeBindingAnnotations { private ApiCallScopeBindingAnnotations() {} /** Annotation for the localeString parameter in the ApiCallScope. */ @Qualifier @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME) public @interface LocaleString {} }
/** Contains the bindings for {@link BindingGraphValidator} from external SPI providers. */ @Module abstract class SpiModule { private SpiModule() {} @Provides @Singleton static ImmutableSet<BindingGraphPlugin> externalPlugins( @TestingPlugins Optional<ImmutableSet<BindingGraphPlugin>> testingPlugins) { return testingPlugins.orElseGet( () -> ImmutableSet.copyOf( ServiceLoader.load( BindingGraphPlugin.class, BindingGraphValidator.class.getClassLoader()))); } @Qualifier @Retention(RUNTIME) @Target({FIELD, PARAMETER, METHOD}) @interface TestingPlugins {} }
@Qualifier @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME)
@Qualifier @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME)
/** * A generalized caching service for Trellis. * * @author acoburn * @param <K> the type of keys for this cache * @param <V> the type of values for this cache */ public interface CacheService<K, V> { /** * Get a value from the cache. * * @param key the key * @param mappingFunction attempts to compute a mapping for the specified key * @return a value for that key or null */ V get(K key, Function<K, V> mappingFunction); /** * A {@link CacheService} used for JSON-LD profiles. * */ @java.lang.annotation.Documented @java.lang.annotation.Retention(RUNTIME) @java.lang.annotation.Target({TYPE, METHOD, FIELD, PARAMETER}) @javax.inject.Qualifier public @interface TrellisProfileCache { } }
/** * A generalized caching service for Trellis. * * @author acoburn * @param <K> the type of keys for this cache * @param <V> the type of values for this cache */ public interface CacheService<K, V> { /** * Get a value from the cache. * * @param key the key * @param mappingFunction attempts to compute a mapping for the specified key * @return a value for that key or null */ V get(K key, Function<K, V> mappingFunction); /** * A {@link CacheService} used for JSON-LD profiles. * */ @java.lang.annotation.Documented @java.lang.annotation.Retention(RUNTIME) @java.lang.annotation.Target({TYPE, METHOD, FIELD, PARAMETER}) @javax.inject.Qualifier public @interface TrellisProfileCache { } }