public class RestClientExtension extends Object implements javax.enterprise.inject.spi.Extension
RegisterRestClient
and creates new Producer from each of these selected interfaces.
Also adds support for injection of rest client instances to fields
without RestClient
annotation.Constructor and Description |
---|
RestClientExtension() |
Modifier and Type | Method and Description |
---|---|
void |
collectClientRegistrations(javax.enterprise.inject.spi.ProcessAnnotatedType<?> processAnnotatedType)
Filters out all interfaces annotated with
RegisterRestClient annotation and
adds them to the collection for further processing. |
void |
restClientRegistration(javax.enterprise.inject.spi.AfterBeanDiscovery abd,
javax.enterprise.inject.spi.BeanManager bm)
Creates new producers based on collected interfaces.
|
public void collectClientRegistrations(@Observes javax.enterprise.inject.spi.ProcessAnnotatedType<?> processAnnotatedType)
RegisterRestClient
annotation and
adds them to the collection for further processing.processAnnotatedType
- filtered annotated typespublic void restClientRegistration(@Observes javax.enterprise.inject.spi.AfterBeanDiscovery abd, javax.enterprise.inject.spi.BeanManager bm)
abd
- after bean discovery instancebm
- bean manager instanceCopyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.