Java Doc for UnpackerBase.java in  » Installer » IzPack » com » izforge » izpack » installer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Installer » IzPack » com.izforge.izpack.installer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.izforge.izpack.installer.UnpackerBase

All known Subclasses:   com.izforge.izpack.installer.MultiVolumeUnpacker,  com.izforge.izpack.installer.Unpacker,
UnpackerBase
abstract public class UnpackerBase implements IUnpacker(Code)
Abstract base class for all unpacker implementations.
author:
   Dennis Reil,


Field Summary
final public static  StringALIVE
    
final public static  StringINTERRUPT
    
final public static  StringINTERRUPTED
    
final protected static  StringLANG_FILE_NAME
    
protected  Fileabsolute_installpath
     The absolute path of the installation.
protected static  booleandiscardInterrupt
     Do not perform a interrupt call.
protected  AbstractUIProgressHandlerhandler
     The installer listener.
protected  AutomatedInstallDataidata
     The installdata.
protected static  HashMap<Object, String>instances
     The instances of the unpacker objects.
protected static  booleaninterruptDesired
     Interrupt flag if global interrupt is desired.
protected  LocaleDatabaselangpack
     The packs locale database.
protected  booleanresult
     The result of the operation.
protected  RulesEnginerules
    
protected  UninstallDataudata
     The uninstallation data.
protected  VariableSubstitutorvs
     The variables substitutor.

Constructor Summary
public  UnpackerBase(AutomatedInstallData idata, AbstractUIProgressHandler handler)
     The constructor.

Method Summary
protected  voidaddToInstances()
     Adds this to the map of all existent instances of Unpacker.
protected  List[]getCustomActions()
     Returns the defined custom actions split into types including a constructed type for the file related installer listeners.
public  booleangetResult()
     Return the state of the operation.
public static  HashMapgetRunningInstances()
     Returns a copy of the active unpacker instances.
protected  voidhandleAdditionalUninstallData(UninstallData udata, List[] customData)
     Adds additional unistall data to the uninstall data object.
protected  voidinformListeners(List[] customActions, int action, Object firstParam, Object secondParam, Object thirdParam)
     Informs all listeners which would be informed at the given action type.
public static  booleaninterruptAll(long waitTime)
     Initiate interrupt of all alive Unpacker and waits until all Unpacker are interrupted or the wait time has arrived.
public static synchronized  booleanisDiscardInterrupt()
     Returns whether an interrupt request should be discarded or not.
public static  booleanisInterruptDesired()
     Returns the interrupt desired state.
protected  booleanmkDirsWithEnhancement(File dest, PackFile pf, List[] customActions)
     Creates the given directory recursive and calls the method "afterDir" of each listener with the current file object and the pack file object.
protected  booleanperformInterrupted()
     Sets the interrupt flag for this Unpacker to INTERRUPTED if the previos state was INTERRUPT or INTERRUPTED and returns whether interrupt was initiate or not.
protected  voidperformUpdateChecks(ArrayList<UpdateCheck> updatechecks)
    
protected  voidputUninstaller()
     Puts the uninstaller.
protected  voidremoveFromInstances()
     Removes this from the map of all existent instances of Unpacker.
abstract public  voidrun()
    
public static synchronized  voidsetDiscardInterrupt(boolean di)
     Sets the discard interrupt flag.
public  voidsetRules(RulesEngine rules)
    
public  voidwriteInstallationInformation()
     Writes information about the installed packs and the variables at installation time.

Field Detail
ALIVE
final public static String ALIVE(Code)



INTERRUPT
final public static String INTERRUPT(Code)



INTERRUPTED
final public static String INTERRUPTED(Code)



LANG_FILE_NAME
final protected static String LANG_FILE_NAME(Code)
The name of the XML file that specifies the panel langpack



absolute_installpath
protected File absolute_installpath(Code)
The absolute path of the installation. (NOT the canonical!)



discardInterrupt
protected static boolean discardInterrupt(Code)
Do not perform a interrupt call.



handler
protected AbstractUIProgressHandler handler(Code)
The installer listener.



idata
protected AutomatedInstallData idata(Code)
The installdata.



instances
protected static HashMap<Object, String> instances(Code)
The instances of the unpacker objects.



interruptDesired
protected static boolean interruptDesired(Code)
Interrupt flag if global interrupt is desired.



langpack
protected LocaleDatabase langpack(Code)
The packs locale database.



result
protected boolean result(Code)
The result of the operation.



rules
protected RulesEngine rules(Code)



udata
protected UninstallData udata(Code)
The uninstallation data.



vs
protected VariableSubstitutor vs(Code)
The variables substitutor.




Constructor Detail
UnpackerBase
public UnpackerBase(AutomatedInstallData idata, AbstractUIProgressHandler handler)(Code)
The constructor.
Parameters:
  idata - The installation data.
Parameters:
  handler - The installation progress handler.




Method Detail
addToInstances
protected void addToInstances()(Code)
Adds this to the map of all existent instances of Unpacker.



getCustomActions
protected List[] getCustomActions()(Code)
Returns the defined custom actions split into types including a constructed type for the file related installer listeners. array of lists of custom action data like listeners



getResult
public boolean getResult()(Code)
Return the state of the operation. true if the operation was successful, false otherwise.



getRunningInstances
public static HashMap getRunningInstances()(Code)
Returns a copy of the active unpacker instances. a copy of active unpacker instances



handleAdditionalUninstallData
protected void handleAdditionalUninstallData(UninstallData udata, List[] customData)(Code)
Adds additional unistall data to the uninstall data object.
Parameters:
  udata - unistall data
Parameters:
  customData - array of lists of custom action data like uninstaller listeners



informListeners
protected void informListeners(List[] customActions, int action, Object firstParam, Object secondParam, Object thirdParam) throws Exception(Code)
Informs all listeners which would be informed at the given action type.
Parameters:
  customActions - array of lists with the custom action objects
Parameters:
  action - identifier for which callback should be called
Parameters:
  firstParam - first parameter for the call
Parameters:
  secondParam - second parameter for the call
Parameters:
  thirdParam - third parameter for the call



interruptAll
public static boolean interruptAll(long waitTime)(Code)
Initiate interrupt of all alive Unpacker and waits until all Unpacker are interrupted or the wait time has arrived. If the doNotInterrupt flag in InstallerListener is set to true, the interrupt will be discarded.
Parameters:
  waitTime - wait time in millisecounds true if the interrupt will be performed, false if the interrupt will be discarded



isDiscardInterrupt
public static synchronized boolean isDiscardInterrupt()(Code)
Returns whether an interrupt request should be discarded or not. Returns the discard interrupt flag



isInterruptDesired
public static boolean isInterruptDesired()(Code)
Returns the interrupt desired state. the interrupt desired state



mkDirsWithEnhancement
protected boolean mkDirsWithEnhancement(File dest, PackFile pf, List[] customActions) throws Exception(Code)
Creates the given directory recursive and calls the method "afterDir" of each listener with the current file object and the pack file object. On error an exception is raised.
Parameters:
  dest - the directory which should be created
Parameters:
  pf - current pack file object
Parameters:
  customActions - all defined custom actions false on error, true else
throws:
  Exception -



performInterrupted
protected boolean performInterrupted()(Code)
Sets the interrupt flag for this Unpacker to INTERRUPTED if the previos state was INTERRUPT or INTERRUPTED and returns whether interrupt was initiate or not. whether interrupt was initiate or not



performUpdateChecks
protected void performUpdateChecks(ArrayList<UpdateCheck> updatechecks)(Code)

Parameters:
  updatechecks -



putUninstaller
protected void putUninstaller() throws Exception(Code)
Puts the uninstaller.
exception:
  Exception - Description of the Exception



removeFromInstances
protected void removeFromInstances()(Code)
Removes this from the map of all existent instances of Unpacker.



run
abstract public void run()(Code)



setDiscardInterrupt
public static synchronized void setDiscardInterrupt(boolean di)(Code)
Sets the discard interrupt flag.
Parameters:
  di - the discard interrupt flag to set



setRules
public void setRules(RulesEngine rules)(Code)



writeInstallationInformation
public void writeInstallationInformation() throws IOException, ClassNotFoundException(Code)
Writes information about the installed packs and the variables at installation time.
throws:
  IOException -
throws:
  ClassNotFoundException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.