org.apache.myfaces.trinidadinternal.share.io
Interface CachingInputStreamProvider

All Superinterfaces:
InputStreamProvider

public interface CachingInputStreamProvider
extends InputStreamProvider

A subinterface of InputStreamProvider that adds support for tracking dependencies.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/share/io/CachingInputStreamProvider.java#0 $) $Date: 10-nov-2005.19:00:05 $
Author:
The Oracle ADF Faces Team

Method Summary
 void addCacheDependency(InputStreamProvider dependency)
          Adds a dependency to this provider.
 java.util.Iterator<InputStreamProvider> getCacheDependencies()
          Returns an enumeration of all the InputStreamProviders that were calculated as dependencies of this file.
 
Methods inherited from interface org.apache.myfaces.trinidadinternal.share.io.InputStreamProvider
getCachedResult, getDisplayName, getIdentifier, hasSourceChanged, openInputStream, setCachedResult
 

Method Detail

addCacheDependency

void addCacheDependency(InputStreamProvider dependency)
Adds a dependency to this provider. The result of InputStreamProvider.hasSourceChanged() must then take into account this dependency.


getCacheDependencies

java.util.Iterator<InputStreamProvider> getCacheDependencies()
Returns an enumeration of all the InputStreamProviders that were calculated as dependencies of this file. This is, of course, only valid after the target has been processed. If there are no dependencies, returns null.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.