* @version $Rev$ $Date$
*/
public class ContextsImpl implements org.jboss.jsr299.tck.spi.Contexts<AbstractContext> {
public AbstractContext getRequestContext() {
ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
RequestContext ctx = (RequestContext) contextFactory.getStandardContext(RequestScoped.class);
if (ctx == null) {
contextFactory.initRequestContext(null);
}
return (AbstractContext) contextFactory.getStandardContext(ContextTypes.REQUEST);
}