wt.admin.cache
Class AdminDomainCache.CacheUpdaterContainer

java.lang.Object
  extended bywt.admin.cache.AdminDomainCache.CacheUpdaterContainer
All Implemented Interfaces:
CacheUpdater
Enclosing class:
AdminDomainCache

private static class AdminDomainCache.CacheUpdaterContainer
extends Object
implements CacheUpdater

Helper class for calling the methods of CacheUpdater on all the contained instances of CacheUpdater.


Field Summary
private  CacheUpdater[] caches
           
 
Constructor Summary
AdminDomainCache.CacheUpdaterContainer(CacheUpdater[] caches)
           
 
Method Summary
 void add(AdministrativeDomain domain)
          Caches an AdministrativeDomain in response to a POST_STORE event
 void delete(AdministrativeDomain domain)
          Deletes a cached AdministrativeDomain in response to a REMOVE event
 void modify(AdministrativeDomain domain)
          Updates a cached AdministrativeDomain in response to a POST_MODIFY event
 void move(AdministrativeDomain domain, AdminDomainRef old_parent, AdminDomainRef new_parent)
          Updates the cache in response to a POST_CHANGE_DOMAIN event on an AdministrativeDomain
 void writeContents(OutputStream os)
          Writes the contents of this cache to an OutputStream for debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caches

private CacheUpdater[] caches
Constructor Detail

AdminDomainCache.CacheUpdaterContainer

public AdminDomainCache.CacheUpdaterContainer(CacheUpdater[] caches)
Method Detail

add

public void add(AdministrativeDomain domain)
Description copied from interface: CacheUpdater
Caches an AdministrativeDomain in response to a POST_STORE event

Specified by:
add in interface CacheUpdater
Parameters:
domain - a new AdministrativeDomain

delete

public void delete(AdministrativeDomain domain)
Description copied from interface: CacheUpdater
Deletes a cached AdministrativeDomain in response to a REMOVE event

Specified by:
delete in interface CacheUpdater
Parameters:
domain - a deleted AdministrativeDomain

modify

public void modify(AdministrativeDomain domain)
Description copied from interface: CacheUpdater
Updates a cached AdministrativeDomain in response to a POST_MODIFY event

Specified by:
modify in interface CacheUpdater
Parameters:
domain - a modified AdministrativeDomain

move

public void move(AdministrativeDomain domain,
                 AdminDomainRef old_parent,
                 AdminDomainRef new_parent)
Description copied from interface: CacheUpdater
Updates the cache in response to a POST_CHANGE_DOMAIN event on an AdministrativeDomain

Specified by:
move in interface CacheUpdater
Parameters:
domain - a moved AdministrativeDomain
old_parent - the old parent AdminDomainRef
new_parent - the new parent AdminDomainRef

writeContents

public void writeContents(OutputStream os)
                   throws IOException
Description copied from interface: CacheUpdater
Writes the contents of this cache to an OutputStream for debugging purposes

Specified by:
writeContents in interface CacheUpdater
Parameters:
os - an OutputStream to write the contents of a cache to
Throws:
IOException - if there is an I/O error