Java Doc for ClassInfoCache.java in  » Portal » Open-Portal » com » sun » portal » desktop » context » 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 » Portal » Open Portal » com.sun.portal.desktop.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.desktop.context.ClassInfoCache

ClassInfoCache
public class ClassInfoCache (Code)
A singleton class that caches information needed by the provider classloader
author:
   ramak
version:
  

Inner Class :class CacheEntry
Inner Class :static class SuffixFilenameFilter implements FilenameFilter



Method Summary
public  FilegetHandle(String className)
     Gets the information related to a class existing in the Provider class base directory either in the form of a class file or a Jar file
Parameters:
  className - Name of the class as String File handle to the class file or the Jar file in which this classexists.
public static synchronized  ClassInfoCachegetInstance(String providerBaseDir)
    
public  FilegetJarFileHandle(String className)
    
public  longgetModifiedTime(String className)
     Gets the information related to a class existing in the Provider class base directory either in the form of a class file or a Jar file
Parameters:
  className - Name of the class as String Last modified time the class file or the Jar file in which thisclass exists.
public static  StringgetProviderClasspath()
    
public  voidremoveClassInfo(String className)
    
public  voidsetClassInfo(String className, boolean fromJar, File fileHandle)
    
public  voidsetClassInfoFromJar(File jarFileHandle, Enumeration jarContent)
    



Method Detail
getHandle
public File getHandle(String className)(Code)
Gets the information related to a class existing in the Provider class base directory either in the form of a class file or a Jar file
Parameters:
  className - Name of the class as String File handle to the class file or the Jar file in which this classexists. The return value is null if the class does not exist inthe cache.



getInstance
public static synchronized ClassInfoCache getInstance(String providerBaseDir)(Code)
Gets an instance of ClassInfoCache
Parameters:
  providerBaseDir - Directory from which provider classes will be loaded as String instance of ClassInfoCache



getJarFileHandle
public File getJarFileHandle(String className) throws IOException(Code)
Gets the File handle to a JarFile to which the class exists under the Provider class base directory
Parameters:
  className - Name of the class as String File handle to a Jar File if the class exists in a Jar elsenull
exception:
  IOException - throws I/O Exception



getModifiedTime
public long getModifiedTime(String className)(Code)
Gets the information related to a class existing in the Provider class base directory either in the form of a class file or a Jar file
Parameters:
  className - Name of the class as String Last modified time the class file or the Jar file in which thisclass exists. This is the last modified time when the class wasloaded.



getProviderClasspath
public static String getProviderClasspath()(Code)
A static method that returns a string representing all the classes and the Jar files in the Provider class base directory This method is called by the JSPServletWrapper Provider classpath as a String



removeClassInfo
public void removeClassInfo(String className)(Code)
Removes the information related to a class from the Cache
Parameters:
  className - Name of the class as String



setClassInfo
public void setClassInfo(String className, boolean fromJar, File fileHandle)(Code)
Sets the information related to a class into the cache
Parameters:
  className - Name of the class as a String
Parameters:
  fromJar - true if the class exists in a a Jar file under theProvider Class base directory
Parameters:
  fileHandle - handle to the class file if existing as a class fileof handle to the Jar file if the class is inside a Jarfile



setClassInfoFromJar
public void setClassInfoFromJar(File jarFileHandle, Enumeration jarContent)(Code)
Sets the information related to classes existing in JarFile into cache
Parameters:
  jarFileHandle - File handle to the Jar File
Parameters:
  jarContent - An Enumeration containing the Zip Entries in Jarfile



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.