org.ow2.jonas.cdi.weld.internal.tomcat
Class WeldContextCustomizer

java.lang.Object
  extended by org.ow2.jonas.cdi.weld.internal.tomcat.WeldContextCustomizer
All Implemented Interfaces:
org.ow2.jonas.web.tomcat6.custom.ContextCustomizer

public class WeldContextCustomizer
extends Object
implements org.ow2.jonas.web.tomcat6.custom.ContextCustomizer

A WeldContextCustomizer will add to the Tomcat Context the appropriate application and Context listeners.

Author:
Guillaume Sauthier

Constructor Summary
WeldContextCustomizer()
           
 
Method Summary
 void customize(org.apache.catalina.core.StandardContext context, org.ow2.util.ee.deploy.api.deployable.WARDeployable deployable)
          Customize the given Catalina Context instance using the given WAR deployable.
 void setDeploymentBuilder(IDeploymentBuilder builder)
          Bind the builder.
 void setWeldService(IWeldService weld)
          Bind the WeldService reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeldContextCustomizer

public WeldContextCustomizer()
Method Detail

setWeldService

public void setWeldService(IWeldService weld)
Bind the WeldService reference.


setDeploymentBuilder

public void setDeploymentBuilder(IDeploymentBuilder builder)
Bind the builder.


customize

public void customize(org.apache.catalina.core.StandardContext context,
                      org.ow2.util.ee.deploy.api.deployable.WARDeployable deployable)
Customize the given Catalina Context instance using the given WAR deployable. This is called just before the Context start-up.

Specified by:
customize in interface org.ow2.jonas.web.tomcat6.custom.ContextCustomizer
Parameters:
context - Catalina Context to be customized
deployable - the WAR being deployed


Copyright © 2011 OW2 Consortium. All Rights Reserved.