Package br.com.caelum.vraptor.test

Source Code of br.com.caelum.vraptor.test.JspDefaultProducer

package br.com.caelum.vraptor.test;

import javax.annotation.Priority;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Alternative;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import javax.interceptor.Interceptor;

import org.jboss.weld.manager.BeanManagerImpl;

import br.com.caelum.vraptor.test.jspsupport.JspResolver;

@ApplicationScoped
@Alternative
@Priority(value=Interceptor.Priority.LIBRARY_BEFORE)
public class JspDefaultProducer {
 
  @Inject
  private BeanManagerImpl beanManagerImpl;

  @Produces
  @ApplicationScoped
  public JspResolver create(){
    return new JspResolver("src/main/webapp",beanManagerImpl);
  }
}
TOP

Related Classes of br.com.caelum.vraptor.test.JspDefaultProducer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.