org.jtheque.core.managers.patch
Class PatchManager

java.lang.Object
  extended by org.jtheque.core.managers.patch.PatchManager
All Implemented Interfaces:
IManager, IPatchManager

public final class PatchManager
extends java.lang.Object
implements IPatchManager

A manager for the patch.

Author:
Baptiste Wicht

Constructor Summary
PatchManager()
          Construct a new PatchManager.
 
Method Summary
 boolean applyPatchsIfNeeded()
          Aplly the patchs if needed.
 void close()
          Close the manager.
 void init()
          Init the manager.
 boolean isApplied(java.lang.String name)
          Indicate if a patch of a certain name is applied or not.
 void preInit()
          Pre-init the manager.
 void registerOnlinePatch(OnlinePatch patch)
          Register an onlinepatch.
 void registerPatch(Patch p)
          Register a patch.
 void setUpdated(boolean updatedParam)
          Set updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchManager

public PatchManager()
Construct a new PatchManager.

Method Detail

isApplied

public boolean isApplied(java.lang.String name)
Description copied from interface: IPatchManager
Indicate if a patch of a certain name is applied or not.

Specified by:
isApplied in interface IPatchManager
Parameters:
name - The name of the patch.
Returns:
true if the patch has been applied else false.

setUpdated

public void setUpdated(boolean updatedParam)
Description copied from interface: IPatchManager
Set updated.

Specified by:
setUpdated in interface IPatchManager
Parameters:
updatedParam - true if the application has been updated else false.

preInit

public void preInit()
Description copied from interface: IManager
Pre-init the manager. This operation is called before modules preplug.

Specified by:
preInit in interface IManager

init

public void init()
          throws ManagerException
Description copied from interface: IManager
Init the manager. This operation is called after modules preplug but before module plug.

Specified by:
init in interface IManager
Throws:
ManagerException - If an error occurs during the init process.

close

public void close()
Description copied from interface: IManager
Close the manager.

Specified by:
close in interface IManager

registerPatch

public void registerPatch(Patch p)
Description copied from interface: IPatchManager
Register a patch.

Specified by:
registerPatch in interface IPatchManager
Parameters:
p - The patch to register.

applyPatchsIfNeeded

public boolean applyPatchsIfNeeded()
Description copied from interface: IPatchManager
Aplly the patchs if needed.

Specified by:
applyPatchsIfNeeded in interface IPatchManager
Returns:
The patchs if needed.

registerOnlinePatch

public void registerOnlinePatch(OnlinePatch patch)
Description copied from interface: IPatchManager
Register an onlinepatch.

Specified by:
registerOnlinePatch in interface IPatchManager
Parameters:
patch - The online patch to register.


Copyright © 2009 JTheque. All Rights Reserved.