1 package org.apache.velocity.runtime.resource; 2 3 18 19 import org.apache.velocity.runtime.RuntimeServices; 20 21 import org.apache.velocity.exception.ResourceNotFoundException; 22 import org.apache.velocity.exception.ParseErrorException; 23 24 33 public interface ResourceManager 34 { 35 38 public static final int RESOURCE_TEMPLATE = 1; 39 40 43 public static final int RESOURCE_CONTENT = 2; 44 45 48 public void initialize( RuntimeServices rs ) throws Exception ; 49 50 65 public Resource getResource(String resourceName, int resourceType, String encoding ) 66 throws ResourceNotFoundException, ParseErrorException, Exception ; 67 68 77 public String getLoaderNameForResource(String resourceName ); 78 79 } 80 81 82 | Popular Tags |