Search in sources :

Example 1 with InterceptorBindingModel

use of org.jboss.weld.metadata.cache.InterceptorBindingModel in project core by weld.

the class SimpleInterceptorTest method testInterceptorModel.

@Test
public void testInterceptorModel() {
    TypeStore typeStore = new TypeStore();
    InterceptorBindingModel<SecondaryInterceptionBinding> interceptorBindingModel = new InterceptorBindingModel<SecondaryInterceptionBinding>(new ClassTransformer(typeStore, new SharedObjectCache(), ReflectionCacheFactory.newInstance(typeStore), RegistrySingletonProvider.STATIC_INSTANCE).getEnhancedAnnotation(SecondaryInterceptionBinding.class));
    Set<Annotation> annotations = interceptorBindingModel.getInheritedInterceptionBindingTypes();
    assert annotations.size() != 0;
}
Also used : SharedObjectCache(org.jboss.weld.resources.SharedObjectCache) TypeStore(org.jboss.weld.metadata.TypeStore) InterceptorBindingModel(org.jboss.weld.metadata.cache.InterceptorBindingModel) ClassTransformer(org.jboss.weld.resources.ClassTransformer) Annotation(java.lang.annotation.Annotation) Test(org.junit.Test)

Aggregations

Annotation (java.lang.annotation.Annotation)1 TypeStore (org.jboss.weld.metadata.TypeStore)1 InterceptorBindingModel (org.jboss.weld.metadata.cache.InterceptorBindingModel)1 ClassTransformer (org.jboss.weld.resources.ClassTransformer)1 SharedObjectCache (org.jboss.weld.resources.SharedObjectCache)1 Test (org.junit.Test)1