本文整理了Java中org.mortbay.jetty.webapp.WebAppContext.getCurrentWebAppContext()
方法的一些代码示例,展示了WebAppContext.getCurrentWebAppContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.getCurrentWebAppContext()
方法的具体详情如下:
包路径:org.mortbay.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:getCurrentWebAppContext
暂无
代码示例来源:origin: weld/core
public static void process(ServletContext context) throws Exception {
WebAppContext wac = (WebAppContext) WebAppContext.getCurrentWebAppContext();
if (wac == null) {
wac = findWAC(context);
}
if (wac != null) {
process(wac, true);
} else {
JettyLogger.LOG.cantFindWebApplicationContext();
}
}
代码示例来源:origin: weld/core
public static void process(ServletContext context) throws Exception {
WebAppContext wac = (WebAppContext) WebAppContext.getCurrentWebAppContext();
if (wac == null) {
wac = findWAC(context);
}
if (wac != null) {
process(wac, true);
} else {
JettyLogger.LOG.cantFindWebApplicationContext();
}
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
public static void process(ServletContext context) throws Exception {
WebAppContext wac = (WebAppContext) WebAppContext.getCurrentWebAppContext();
if (wac == null) {
wac = findWAC(context);
}
if (wac != null) {
process(wac, true);
} else {
JettyLogger.LOG.cantFindWebApplicationContext();
}
}
代码示例来源:origin: org.glassfish/jakarta.faces
/**
* <p>
* The implementation of this method must perform the following steps:
* <ul>
* <li>Inject the supported resources per the Servlet 2.5 specification into the provided object</li>
* </ul>
* </p>
* <p>
* This method <em>must not</em> invoke any methods annotated with <code>@PostConstruct</code>
*
* @param managedBean
* the target managed bean
* @throws com.sun.faces.spi.InjectionProviderException
* if an error occurs during resource injection
*/
public void inject(Object managedBean) throws InjectionProviderException {
AnnotationParser.parseAnnotations((WebAppContext) WebAppContext.getCurrentWebAppContext(), managedBean.getClass(), null, injections,
callbacks);
try {
injections.inject(managedBean);
} catch (Exception e) {
throw new InjectionProviderException(e);
}
}
代码示例来源:origin: org.glassfish/javax.faces
/**
* <p>
* The implementation of this method must perform the following steps:
* <ul>
* <li>Inject the supported resources per the Servlet 2.5 specification into the provided object</li>
* </ul>
* </p>
* <p>
* This method <em>must not</em> invoke any methods annotated with <code>@PostConstruct</code>
*
* @param managedBean
* the target managed bean
* @throws com.sun.faces.spi.InjectionProviderException
* if an error occurs during resource injection
*/
public void inject(Object managedBean) throws InjectionProviderException {
AnnotationParser.parseAnnotations((WebAppContext) WebAppContext.getCurrentWebAppContext(), managedBean.getClass(), null, injections,
callbacks);
try {
injections.inject(managedBean);
} catch (Exception e) {
throw new InjectionProviderException(e);
}
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* <p>
* The implementation of this method must perform the following steps:
* <ul>
* <li>Inject the supported resources per the Servlet 2.5 specification into the provided object</li>
* </ul>
* </p>
* <p>
* This method <em>must not</em> invoke any methods annotated with <code>@PostConstruct</code>
*
* @param managedBean
* the target managed bean
* @throws com.sun.faces.spi.InjectionProviderException
* if an error occurs during resource injection
*/
public void inject(Object managedBean) throws InjectionProviderException {
AnnotationParser.parseAnnotations((WebAppContext) WebAppContext.getCurrentWebAppContext(), managedBean.getClass(), null, injections,
callbacks);
try {
injections.inject(managedBean);
} catch (Exception e) {
throw new InjectionProviderException(e);
}
}
代码示例来源:origin: javax.faces/jsf-impl
/**
* <p>The implementation of this method must perform the following
* steps:
* <ul>
* <li>Inject the supported resources per the Servlet 2.5
* specification into the provided object</li>
* </ul>
* </p>
* <p>This method <em>must not</em> invoke any methods
* annotated with <code>@PostConstruct</code>
*
* @param managedBean the target managed bean
* @throws com.sun.faces.spi.InjectionProviderException
* if an error occurs during
* resource injection
*/
public void inject(Object managedBean) throws InjectionProviderException {
AnnotationParser.parseAnnotations((WebAppContext) WebAppContext.getCurrentWebAppContext(),
managedBean.getClass(),
null,
injections,
callbacks);
try {
injections.inject(managedBean);
} catch (Exception e) {
throw new InjectionProviderException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!