link start!
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package org.apache.velocity.runtime.resource;
|
||||
|
||||
import java.util.Iterator;
|
||||
import org.apache.velocity.runtime.RuntimeServices;
|
||||
|
||||
public interface ResourceCache {
|
||||
Iterator enumerateKeys();
|
||||
|
||||
Resource get(Object obj);
|
||||
|
||||
void initialize(RuntimeServices runtimeServices);
|
||||
|
||||
Resource put(Object obj, Resource resource);
|
||||
|
||||
Resource remove(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.apache.velocity.runtime.resource;
|
||||
|
||||
import org.apache.velocity.exception.ParseErrorException;
|
||||
import org.apache.velocity.exception.ResourceNotFoundException;
|
||||
import org.apache.velocity.runtime.RuntimeServices;
|
||||
|
||||
public interface ResourceManager {
|
||||
public static final int RESOURCE_CONTENT = 2;
|
||||
public static final int RESOURCE_TEMPLATE = 1;
|
||||
|
||||
String getLoaderNameForResource(String str);
|
||||
|
||||
Resource getResource(String str, int i, String str2) throws ResourceNotFoundException, ParseErrorException;
|
||||
|
||||
void initialize(RuntimeServices runtimeServices);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.apache.velocity.runtime.resource.util;
|
||||
|
||||
public interface StringResourceRepository {
|
||||
String getEncoding();
|
||||
|
||||
StringResource getStringResource(String str);
|
||||
|
||||
void putStringResource(String str, String str2);
|
||||
|
||||
void putStringResource(String str, String str2, String str3);
|
||||
|
||||
void removeStringResource(String str);
|
||||
|
||||
void setEncoding(String str);
|
||||
}
|
||||
Reference in New Issue
Block a user