use of org.jboss.weld.resources.SharedObjectCache 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;
}
use of org.jboss.weld.resources.SharedObjectCache in project HotswapAgent by HotswapProjects.
the class BeanReloadExecutor method getClassTransformer.
private static ClassTransformer getClassTransformer() {
TypeStore store = new TypeStore();
SharedObjectCache cache = new SharedObjectCache();
ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store);
ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, "STATIC_INSTANCE");
return classTransformer;
}
Aggregations