Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 176258 Details for
Bug 322261
WTP needs an API on ServerPublishInfo to rebuild the cache for a specific module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
possible patch to allow adaptors to destroy/rebuild the cache of a specific IModule
wst.server.core_rebuildCache.patch (text/plain), 1.24 KB, created by
Troy Bishop
on 2010-08-10 13:50:29 EDT
(
hide
)
Description:
possible patch to allow adaptors to destroy/rebuild the cache of a specific IModule
Filename:
MIME Type:
Creator:
Troy Bishop
Created:
2010-08-10 13:50:29 EDT
Size:
1.24 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.server.core >Index: servercore/org/eclipse/wst/server/core/internal/ServerPublishInfo.java >=================================================================== >RCS file: /cvsroot/webtools/servertools/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/ServerPublishInfo.java,v >retrieving revision 1.37 >diff -u -r1.37 ServerPublishInfo.java >--- servercore/org/eclipse/wst/server/core/internal/ServerPublishInfo.java 28 Apr 2008 21:46:24 -0000 1.37 >+++ servercore/org/eclipse/wst/server/core/internal/ServerPublishInfo.java 10 Aug 2010 17:44:41 -0000 >@@ -531,6 +531,23 @@ > } > > /** >+ * Recreates the cache for the specified {@link IModule}. >+ * >+ * @param module The {@link IModule} >+ */ >+ public void rebuildCache(IModule[] module) { >+ >+ synchronized (modulePublishInfo) { >+ final String publishInfoKey = this.getKey(module); >+ ModulePublishInfo mpi = modulePublishInfo.get(publishInfoKey); >+ if(mpi != null) { >+ mpi.startCaching(); // clear out the resource list >+ mpi.fill(module); // rebuild the resource list >+ } >+ } >+ } >+ >+ /** > * Clears all caches of current module resources and deltas. > */ > public void clearCache() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
arvera
:
iplog+
arvera
:
review+
Actions:
View
|
Diff
Attachments on
bug 322261
: 176258