org.apache.lenya.ac.cache
Interface SourceCache

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Implementing Classes:
SourceCacheImpl

public interface SourceCache
extends org.apache.avalon.framework.component.Component

Source cache component.

Version:
$Id: SourceCache.java 473841 2006-11-12 00:46:38Z gregor $

Field Summary
static java.lang.String ROLE
          Avalon role of the SourceCache interface.
 
Method Summary
 java.lang.Object get(java.lang.String sourceUri, InputStreamBuilder builder)
          Returns a cached object or builds a new object when the cached object does not exist or is not up to date.
 

Field Detail

ROLE

static final java.lang.String ROLE
Avalon role of the SourceCache interface.

Method Detail

get

java.lang.Object get(java.lang.String sourceUri,
                     InputStreamBuilder builder)
                     throws CachingException
Returns a cached object or builds a new object when the cached object does not exist or is not up to date.

Parameters:
sourceUri - The URI to build the source from.
builder - The builder to create a new object if needed.
Returns:
An object.
Throws:
CachingException - when something went wrong.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.