use of javax.enterprise.context.RequestScoped in project oxCore by GluuFederation.
the class ContextProducer method createELContext.
@Produces
@RequestScoped
public ELContext createELContext(BeanManager beanManager) {
// Create default resovler
CompositeELResolver resolver = createELResolver(beanManager);
// Add constant resolver
ConstantResolver constantResolver = new ConstantResolver();
resolver.add(constantResolver);
return createELContext(resolver, new FunctionMapperImpl(), new VariableMapperImpl(), constantResolver);
}
use of javax.enterprise.context.RequestScoped in project deltaspike by apache.
the class AnnotationInstanceProviderTest method assertDifferentAnnotationsNotEqual.
@Test
public void assertDifferentAnnotationsNotEqual() {
RequestScoped annotation1 = AnnotationInstanceProvider.of(RequestScoped.class);
Named annotation2 = AnnotationInstanceProvider.of(Named.class);
assertFalse(annotation1.equals(annotation2));
assertFalse(annotation2.equals(annotation1));
}
Aggregations