public class ServletContextBean extends AbstractStaticallyDecorableBuiltInBean<ServletContext>
ServletContext
.AbstractBuiltInBean.BuiltInBeanAttributes<T>
beanManager
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Constructor and Description |
---|
ServletContextBean(BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup() |
void |
destroy(ServletContext instance,
CreationalContext<ServletContext> creationalContext)
Destroy an instance of the contextual type.
|
Class<? extends Annotation> |
getScope()
Obtains the scope of the bean.
|
protected ServletContext |
newInstance(InjectionPoint ip,
CreationalContext<ServletContext> creationalContext) |
static void |
setServletContext(ServletContext ctx) |
getDecorators, getProxyClass, initializeAfterBeanDiscovery
create, getBeanClass, getDecorators, getInjectionPoint
cleanupAfterBoot, getInjectionPoints, getType, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, isProxyRequired, preInitialize
getBeanManager, getQualifierInstances, initialize, isDependent
attributes, equals, getId, hashCode, isNullable, setAttributes, toString, unwrap
getName, getQualifiers, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInjectionPoints, isNullable
getName, getQualifiers, getStereotypes, getTypes, isAlternative
getId
public ServletContextBean(BeanManagerImpl beanManager)
protected ServletContext newInstance(InjectionPoint ip, CreationalContext<ServletContext> creationalContext)
newInstance
in class AbstractDecorableBuiltInBean<ServletContext>
public void destroy(ServletContext instance, CreationalContext<ServletContext> creationalContext)
Contextual
CreationalContext.release()
to allow the container to destroy dependent objects of
the contextual instance.instance
- the contextual instance to destroycreationalContext
- the context in which this instance was createdpublic Class<? extends Annotation> getScope()
BeanAttributes
getScope
in interface BeanAttributes<ServletContext>
getScope
in class ForwardingBeanAttributes<ServletContext>
public static void setServletContext(ServletContext ctx)
public static void cleanup()
Copyright © 2013 Seam Framework. All Rights Reserved.