Java Doc for StandardModule.java in  » IDE-Netbeans » library » org » netbeans » 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 » IDE Netbeans » library » org.netbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.Module
   org.netbeans.StandardModule

StandardModule
final class StandardModule extends Module (Code)
Object representing one module, possibly installed. Responsible for opening of module JAR file; reading manifest; parsing basic information such as dependencies; and creating a classloader for use by the installer. Methods not defined in ModuleInfo must be called from within the module manager's read mutex as a rule.
author:
   Jesse Glick



Constructor Summary
public  StandardModule(ModuleManager mgr, Events ev, File jar, Object history, boolean reloadable, boolean autoload, boolean eager)
     Use ModuleManager.create as a factory.

Method Summary
protected  voidclassLoaderDown()
     Turn off the classloader and release all resources.
protected  voidclassLoaderUp(Set<Module> parents)
     Turn on the classloader.
protected  voidcleanup()
     Should be called after turning off the classloader of one or more modules & GC'ing.
public  voiddestroy()
     Notify the module that it is being deleted.
public  List<File>getAllJars()
     Get all JARs loaded by this module.
public  FilegetJarFile()
     Get the JAR this module is packaged in.
public  ObjectgetLocalizedAttribute(String attr)
     Get a localized attribute. First, if OpenIDE-Module-Localizing-Bundle was given, the specified bundle file (in all locale JARs as well as base JAR) is searched for a key of the specified name. Otherwise, the manifest's main attributes are searched for an attribute with the specified name, possibly with a locale suffix. If the attribute name contains a slash, and there is a manifest section named according to the part before the last slash, then this section's attributes are searched instead of the main attributes, and for the attribute listed after the slash.
public  ManifestgetManifest()
    
public  booleanisFixed()
    
public  booleanowns(Class clazz)
    
public  voidreleaseManifest()
    
public  voidreload()
     Reload this module.
public  voidsetReloadable(boolean r)
     Set whether this module is supposed to be reloadable.
public  StringtoString()
     String representation for debugging.


Constructor Detail
StandardModule
public StandardModule(ModuleManager mgr, Events ev, File jar, Object history, boolean reloadable, boolean autoload, boolean eager) throws IOException(Code)
Use ModuleManager.create as a factory.




Method Detail
classLoaderDown
protected void classLoaderDown()(Code)
Turn off the classloader and release all resources.



classLoaderUp
protected void classLoaderUp(Set<Module> parents) throws IOException(Code)
Turn on the classloader. Passed a list of parent modules to use. The parents should already have had their classloaders initialized.



cleanup
protected void cleanup()(Code)
Should be called after turning off the classloader of one or more modules & GC'ing.



destroy
public void destroy()(Code)
Notify the module that it is being deleted.



getAllJars
public List<File> getAllJars()(Code)
Get all JARs loaded by this module. Includes the module itself, any locale variants of the module, any extensions specified with Class-Path, any locale variants of those extensions. The list will be in classpath order (patches first). Currently the temp JAR is provided in the case of test modules, to prevent sporadic ZIP file exceptions when background threads (like Java parsing) tries to open libraries found in the library path. JARs already present in the classpath are not listed. a List<File> of JARs



getJarFile
public File getJarFile()(Code)
Get the JAR this module is packaged in. May be null for modules installed specially, e.g. automatically from the classpath.
See Also:   StandardModule.isFixed



getLocalizedAttribute
public Object getLocalizedAttribute(String attr)(Code)
Get a localized attribute. First, if OpenIDE-Module-Localizing-Bundle was given, the specified bundle file (in all locale JARs as well as base JAR) is searched for a key of the specified name. Otherwise, the manifest's main attributes are searched for an attribute with the specified name, possibly with a locale suffix. If the attribute name contains a slash, and there is a manifest section named according to the part before the last slash, then this section's attributes are searched instead of the main attributes, and for the attribute listed after the slash. Currently this would only be useful for localized filesystem names. E.g. you may request the attribute org/foo/MyFileSystem.class/Display-Name. In the future certain attributes known to be dangerous could be explicitly suppressed from this list; should only be used for documented localizable attributes such as OpenIDE-Module-Name etc.



getManifest
public Manifest getManifest()(Code)



isFixed
public boolean isFixed()(Code)



owns
public boolean owns(Class clazz)(Code)



releaseManifest
public void releaseManifest()(Code)



reload
public void reload() throws IOException(Code)
Reload this module. Access from ModuleManager. If an exception is thrown, the module is considered to be in an invalid state.



setReloadable
public void setReloadable(boolean r)(Code)
Set whether this module is supposed to be reloadable. Has no immediate effect, only impacts what happens the next time it is enabled (after having been disabled if necessary). Must be called from within a write mutex.
Parameters:
  r - whether the module should be considered reloadable



toString
public String toString()(Code)
String representation for debugging.



Fields inherited from org.netbeans.Module
final public static String PROP_CLASS_LOADER(Code)(Java Doc)
final public static String PROP_MANIFEST(Code)(Java Doc)
final public static String PROP_PROBLEMS(Code)(Java Doc)
final public static String PROP_RELOADABLE(Code)(Java Doc)
final public static String PROP_VALID(Code)(Java Doc)
protected ClassLoader classloader(Code)(Java Doc)
final protected Events events(Code)(Java Doc)
final protected ModuleManager mgr(Code)(Java Doc)
protected boolean reloadable(Code)(Java Doc)

Methods inherited from org.netbeans.Module
abstract protected void classLoaderDown()(Code)(Java Doc)
abstract protected void classLoaderUp(Set<Module> parents) throws IOException(Code)(Java Doc)
abstract protected void cleanup()(Code)(Java Doc)
abstract protected void destroy()(Code)(Java Doc)
final void firePropertyChange0(String prop, Object old, Object nue)(Code)(Java Doc)
abstract public List<File> getAllJars()(Code)(Java Doc)
public Object getAttribute(String attr)(Code)(Java Doc)
public ClassLoader getClassLoader() throws IllegalArgumentException(Code)(Java Doc)
public String getCodeName()(Code)(Java Doc)
public String getCodeNameBase()(Code)(Java Doc)
public int getCodeNameRelease()(Code)(Java Doc)
public Set<Dependency> getDependencies()(Code)(Java Doc)
final public Dependency[] getDependenciesArray()(Code)(Java Doc)
final public Object getHistory()(Code)(Java Doc)
public File getJarFile()(Code)(Java Doc)
public ModuleManager getManager()(Code)(Java Doc)
abstract public Manifest getManifest()(Code)(Java Doc)
public Set<Object> getProblems()(Code)(Java Doc)
public String[] getProvides()(Code)(Java Doc)
public PackageExport[] getPublicPackages()(Code)(Java Doc)
public SpecificationVersion getSpecificationVersion()(Code)(Java Doc)
public boolean isAutoload()(Code)(Java Doc)
boolean isDeclaredAsFriend(Module module)(Code)(Java Doc)
public boolean isEager()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
abstract public boolean isFixed()(Code)(Java Doc)
public boolean isReloadable()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public boolean owns(Class clazz)(Code)(Java Doc)
protected void parseManifest() throws InvalidException(Code)(Java Doc)
final public boolean provides(String token)(Code)(Java Doc)
public void releaseManifest()(Code)(Java Doc)
abstract public void reload() throws IOException(Code)(Java Doc)
void setEnabled(boolean enabled)(Code)(Java Doc)
abstract public void setReloadable(boolean r)(Code)(Java Doc)
public String toString()(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.