Java Doc for CacheManager.java in  » Ajax » GWT » com » google » gwt » dev » jdt » 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 » Ajax » GWT » com.google.gwt.dev.jdt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.gwt.dev.jdt.CacheManager

CacheManager
public class CacheManager (Code)
CacheManager manages all the caching used to speed up hosted mode startup and refresh, and manages the invalidations required to ensure that changes are reflected correctly on reload.

Inner Class :static class Mapper

Field Summary
final public static  Class[]BOOTSTRAP_CLASSES
     The set of all classes whose bytecode needs to exist as bootstrap bytecode to be taken as given by the bytecode compiler.

Constructor Summary
public  CacheManager()
     Creates a new CacheManager, creating a new TypeOracle.
public  CacheManager(String cacheDir, TypeOracle oracle)
     Creates a new CacheManager, creating a new TypeOracle.
public  CacheManager(TypeOracle typeOracle)
     Creates a new CacheManager, using the supplied TypeOracle.

Method Summary
 booleanacceptIntoCache(TreeLogger logger, String binaryTypeName, ByteCode byteCode)
     This method adds byte.
 voidaddCompilationUnit(CompilationUnitProvider cup)
     Adds this compilation unit if it is not present, or is older.
 voidaddDependentsToChangedFiles()
     This method modifies the field changedFiles to contain all of the additional files that are capable of reaching any of the files currently contained within changedFiles.
public  voidaddGeneratedCup(CompilationUnitProvider generatedCup)
     Adds the specified CompilationUnitProvider to the set of CUPs generated by com.google.gwt.core.ext.Generator Generator s.
public  voidaddGeneratedResource(String partialPath)
    
 ICompilationUnitfindUnitForCup(CompilationUnitProvider cup)
    
 Set<CompilationUnitProvider>getAddedCups()
    
 AstCompilergetAstCompiler()
    
 ByteCodegetByteCode(String binaryTypeName)
     Gets the bytecode from the cache, rejecting it if an incompatible change occurred since it was cached.
 Set<String>getChangedFiles()
    
 Map<String, CompilationUnitDeclaration>getCudsByFileName()
    
 CompilationUnitProvidergetCup(CompilationUnitProvider cup)
    
 ObjectgetCupLastUpdateTime(CompilationUnitProvider cup)
    
 Map<String, CompilationUnitProvider>getCupsByLocation()
    
 MappergetIdentityMapper()
    
 Map<String, Long>getTimesByLocation()
    
 JTypegetTypeForBinding(ReferenceBinding referenceBinding)
    
public  TypeOraclegetTypeOracle()
     This method returns the TypeOracle associated with this CacheManager.
public  booleanhasGeneratedResource(String partialPath)
    
 voidinvalidateOnRefresh(TypeOracle typeOracle)
     This removes all state changed since the last time the typeOracle was run.
public  voidinvalidateVolatileFiles()
     Ensures that all compilation units generated via generators are removed from the system so that they will be generated again, and thereby take into account input that may have changed since the last reload.
 booleanisCupUnchanged(CompilationUnitProvider cup, Long lastModified)
    
 voidmarkCupChanged(CompilationUnitProvider cup)
     This method is called when a cup is known to have changed.
 booleanremoveFromCache(TreeLogger logger, String binaryTypeName)
    
 voidremoveStaleByteCode(TreeLogger logger, AbstractCompiler compiler)
     This method removes all of the bytecode which is out of date from the bytecode cache.
 voidsetTypeForBinding(ReferenceBinding binding, JClassType type)
    

Field Detail
BOOTSTRAP_CLASSES
final public static Class[] BOOTSTRAP_CLASSES(Code)
The set of all classes whose bytecode needs to exist as bootstrap bytecode to be taken as given by the bytecode compiler.




Constructor Detail
CacheManager
public CacheManager()(Code)
Creates a new CacheManager, creating a new TypeOracle. This constructor does not specify a cache directory, and therefore is to be used in unit tests and executables that do not need caching.



CacheManager
public CacheManager(String cacheDir, TypeOracle oracle)(Code)
Creates a new CacheManager, creating a new TypeOracle. This constructor uses the specified cacheDir, and does cache information across reloads. If the specified cacheDir is null, caching across reloads will be disabled.



CacheManager
public CacheManager(TypeOracle typeOracle)(Code)
Creates a new CacheManager, using the supplied TypeOracle. This constructor does not specify a cache directory, and therefore is to be used in unit tests and executables that do not need caching.




Method Detail
acceptIntoCache
boolean acceptIntoCache(TreeLogger logger, String binaryTypeName, ByteCode byteCode)(Code)
This method adds byte.
Parameters:
  logger -
Parameters:
  binaryTypeName -
Parameters:
  byteCode -



addCompilationUnit
void addCompilationUnit(CompilationUnitProvider cup) throws UnableToCompleteException(Code)
Adds this compilation unit if it is not present, or is older. Otherwise does nothing.
throws:
  UnableToCompleteException - thrown if we cannot figure out when thiscup was modified



addDependentsToChangedFiles
void addDependentsToChangedFiles()(Code)
This method modifies the field changedFiles to contain all of the additional files that are capable of reaching any of the files currently contained within changedFiles.



addGeneratedCup
public void addGeneratedCup(CompilationUnitProvider generatedCup)(Code)
Adds the specified CompilationUnitProvider to the set of CUPs generated by com.google.gwt.core.ext.Generator Generator s. Generated CompilationUnitProviders are not cached across reloads.



addGeneratedResource
public void addGeneratedResource(String partialPath)(Code)



findUnitForCup
ICompilationUnit findUnitForCup(CompilationUnitProvider cup)(Code)



getAddedCups
Set<CompilationUnitProvider> getAddedCups()(Code)



getAstCompiler
AstCompiler getAstCompiler()(Code)



getByteCode
ByteCode getByteCode(String binaryTypeName)(Code)
Gets the bytecode from the cache, rejecting it if an incompatible change occurred since it was cached.



getChangedFiles
Set<String> getChangedFiles()(Code)



getCudsByFileName
Map<String, CompilationUnitDeclaration> getCudsByFileName()(Code)



getCup
CompilationUnitProvider getCup(CompilationUnitProvider cup)(Code)



getCupLastUpdateTime
Object getCupLastUpdateTime(CompilationUnitProvider cup)(Code)



getCupsByLocation
Map<String, CompilationUnitProvider> getCupsByLocation()(Code)



getIdentityMapper
Mapper getIdentityMapper()(Code)



getTimesByLocation
Map<String, Long> getTimesByLocation()(Code)



getTypeForBinding
JType getTypeForBinding(ReferenceBinding referenceBinding)(Code)



getTypeOracle
public TypeOracle getTypeOracle()(Code)
This method returns the TypeOracle associated with this CacheManager.



hasGeneratedResource
public boolean hasGeneratedResource(String partialPath)(Code)



invalidateOnRefresh
void invalidateOnRefresh(TypeOracle typeOracle)(Code)
This removes all state changed since the last time the typeOracle was run. Since the typeOracle information is not cached on disk, this is not needed the first time.
Parameters:
  typeOracle -



invalidateVolatileFiles
public void invalidateVolatileFiles()(Code)
Ensures that all compilation units generated via generators are removed from the system so that they will be generated again, and thereby take into account input that may have changed since the last reload.



isCupUnchanged
boolean isCupUnchanged(CompilationUnitProvider cup, Long lastModified)(Code)
Was this cup, last modified at time lastModified modified since it was last processed by the system?



markCupChanged
void markCupChanged(CompilationUnitProvider cup)(Code)
This method is called when a cup is known to have changed. This will ensure that all the types defined in this cup are invalidated.
Parameters:
  cup - the cup modified



removeFromCache
boolean removeFromCache(TreeLogger logger, String binaryTypeName)(Code)



removeStaleByteCode
void removeStaleByteCode(TreeLogger logger, AbstractCompiler compiler)(Code)
This method removes all of the bytecode which is out of date from the bytecode cache. The set of files needing to be changed are going to be the set already known to be changed plus those that are out of date in the bytecode cache.



setTypeForBinding
void setTypeForBinding(ReferenceBinding binding, JClassType type)(Code)



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.