org.cafesip.upgrade
Class UpgraderListenerAdapter

java.lang.Object
  extended by org.cafesip.upgrade.UpgraderListenerAdapter
All Implemented Interfaces:
UpgraderListener

public class UpgraderListenerAdapter
extends java.lang.Object
implements UpgraderListener

An adapter that makes it easier to create a upgrade listener class. An application listener class must extend this class and override only the methods that the applications is interested in.

Author:
Amit Chatterjee

Constructor Summary
UpgraderListenerAdapter()
           
 
Method Summary
 void onException(Upgrader upgrader, java.lang.Exception e, int dbPatchLevel, java.io.File file)
          This method is called when an exception is encountered during the upgrade process.
 void onPostpatch(Upgrader upgrader, int dbPatchLevel, java.io.File file)
          This method is called after a patch has been applied.
 void onPostupgrade(Upgrader upgrader, int dbPatchLevel)
          This method is called after the upgrade is completed.
 void onPrepatch(Upgrader upgrader, int dbPatchLevel, java.io.File file)
          This method is called before a patch is applied.
 void onPreupgrade(Upgrader upgrader, int dbPatchLevel)
          This method is called before the upgrade process begins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgraderListenerAdapter

public UpgraderListenerAdapter()
Method Detail

onException

public void onException(Upgrader upgrader,
                        java.lang.Exception e,
                        int dbPatchLevel,
                        java.io.File file)
Description copied from interface: UpgraderListener
This method is called when an exception is encountered during the upgrade process.

Specified by:
onException in interface UpgraderListener

onPostupgrade

public void onPostupgrade(Upgrader upgrader,
                          int dbPatchLevel)
Description copied from interface: UpgraderListener
This method is called after the upgrade is completed.

Specified by:
onPostupgrade in interface UpgraderListener

onPostpatch

public void onPostpatch(Upgrader upgrader,
                        int dbPatchLevel,
                        java.io.File file)
Description copied from interface: UpgraderListener
This method is called after a patch has been applied.

Specified by:
onPostpatch in interface UpgraderListener

onPreupgrade

public void onPreupgrade(Upgrader upgrader,
                         int dbPatchLevel)
Description copied from interface: UpgraderListener
This method is called before the upgrade process begins.

Specified by:
onPreupgrade in interface UpgraderListener

onPrepatch

public void onPrepatch(Upgrader upgrader,
                       int dbPatchLevel,
                       java.io.File file)
Description copied from interface: UpgraderListener
This method is called before a patch is applied.

Specified by:
onPrepatch in interface UpgraderListener


Copyright © 2009 CafeSip.org. All Rights Reserved.