Package org.apache.catalina

Examples of org.apache.catalina.Lifecycle


     *
     * @param event The event that has occurred
     */
    public void lifecycleEvent(LifecycleEvent event) {

        Lifecycle lifecycle = event.getLifecycle();
        if (Lifecycle.START_EVENT.equals(event.getType())) {

            if (lifecycle instanceof Server) {
                createMBeans();
            }
View Full Code Here


        Class clazz = Class.forName(className);
        LifecycleListener listener =
            (LifecycleListener) clazz.newInstance();

        // Add this LifecycleListener to our associated component
        Lifecycle lifecycle = (Lifecycle) digester.peek();
        lifecycle.addLifecycleListener(listener);

    }
View Full Code Here

     * initialize itself and then for after_stop events of each {@link Context}.
     */
    @Override
    public void lifecycleEvent(LifecycleEvent event) {
        try {
            Lifecycle lifecycle = event.getLifecycle();
            if (Lifecycle.AFTER_START_EVENT.equals(event.getType()) &&
                    lifecycle instanceof Server) {
                // when the server starts, we register ourself as listener for
                // all context
                // as well as container event listener so that we know when new
View Full Code Here

      mod_jk = getWriter();
  } catch(IOException iex) {
      log("Unable to open config file");
      return;
  }
  Lifecycle who = evt.getLifecycle();
  if( who instanceof Server ) {
      executeServer((Server)who, mod_jk);
  } else if ( who instanceof Host ) {
      executeHost((Host)who, mod_jk);
  } else if( who instanceof Context ) {
View Full Code Here

     *
     * @param event The event that has occurred
     */
    public void lifecycleEvent(LifecycleEvent event) {

        Lifecycle lifecycle = event.getLifecycle();
        if (Lifecycle.START_EVENT.equals(event.getType())) {

            if (lifecycle instanceof Server) {

                createMBeans();
View Full Code Here

      mod_jk = getWriter();
  } catch(IOException iex) {
      log("Unable to open config file");
      return;
  }
  Lifecycle who = evt.getLifecycle();
  if( who instanceof Server ) {
      executeServer((Server)who, mod_jk);
  } else if ( who instanceof Host ) {
      executeHost((Host)who, mod_jk);
  } else if( who instanceof Context ) {
View Full Code Here

      mod_jk = getWriter();
  } catch(IOException iex) {
      log("Unable to open config file");
      return;
  }
  Lifecycle who = evt.getLifecycle();
  if( who instanceof Server ) {
      executeServer((Server)who, mod_jk);
  } else if ( who instanceof Host ) {
      executeHost((Host)who, mod_jk);
  } else if( who instanceof Context ) {
View Full Code Here

     *
     * @param event The event that has occurred
     */
    public void lifecycleEvent(LifecycleEvent event) {

        Lifecycle lifecycle = event.getLifecycle();
        if (Lifecycle.START_EVENT.equals(event.getType())) {

            if (lifecycle instanceof Server) {

                // Loading additional MBean descriptors
View Full Code Here

     *
     * @param event The event that has occurred
     */
    public void lifecycleEvent(LifecycleEvent event) {

        Lifecycle lifecycle = event.getLifecycle();
        if (Lifecycle.START_EVENT.equals(event.getType())) {

            if (lifecycle instanceof Server) {

                // Loading additional MBean descriptors
View Full Code Here

        Class clazz = Class.forName(className);
        LifecycleListener listener =
            (LifecycleListener) clazz.newInstance();

        // Add this LifecycleListener to our associated component
        Lifecycle lifecycle = (Lifecycle) digester.peek();
        lifecycle.addLifecycleListener(listener);

    }
View Full Code Here

TOP

Related Classes of org.apache.catalina.Lifecycle

Copyright © 2018 www.massapicom. 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.