001//
002// Name
003//      $RCSfile: Notifier.java,v $
004//
005// Copyright
006//      Confidential Property of Kabira Technologies, Inc.
007//      Copyright 2009 by Kabira Technologies, Inc.
008//      All rights reserved.
009//
010// History
011//      $Revision: 1.1.2.3 $ $Date: 2012/04/02 23:49:16 $
012//      $Source: /opt/cvsroot/switchcore/ktvm/generic/component/com/kabira/platform/component/Attic/Notifier.java,v $
013//
014
015package com.kabira.platform.component;
016
017/**
018 * Component state change notifier class.
019 * <p>
020 * A Notifier class may choose to override any of the methods.
021 * The default implementation does nothing.
022 * <p>
023 * Notifier methods are called from within a transaction.
024 */
025public class Notifier
026{
027    static String className = "com.kabira.platform.component.Notifier";
028
029    /**
030     * Prevent direct instantiation.
031     */
032    protected Notifier()
033    {
034
035    }
036
037    /**
038     * Called before any configuration files for the component
039     * currently being activated have been loaded and activated.
040     * @throws ComponentException
041     * Used to communicate a fatal initialize error.
042     */
043    protected void preConfigurationInitialize() throws ComponentException
044    {
045
046    }
047
048    /**
049     * Called after all configuration files for the component
050     * currently being activated have been loaded and activated.
051     * @throws ComponentException
052     * Used to communicate a fatal initialization error.
053     */
054    protected void postConfigurationInitialize() throws ComponentException
055    {
056
057    }
058
059    /**
060     * Called during component deactivation before any of the
061     * configuration files from this component have been deactivated
062     * and unloaded.
063     */
064    protected void preConfigurationTerminate()
065    {
066
067    }
068    /**
069     * Called during component deactivation after all of the configuration
070     * files from this component have been deactivated and unloaded.
071     */
072    protected void postConfigurationTerminate()
073    {
074
075    }
076}