1 16 package org.apache.cocoon.components.language.generator; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.avalon.framework.component.ComponentManager; 20 import org.apache.excalibur.source.Source; 21 22 import org.apache.cocoon.environment.SourceResolver; 23 24 31 public interface ProgramGenerator extends Component { 32 33 String ROLE = ProgramGenerator.class.getName(); 34 35 49 CompiledComponent load( 50 ComponentManager newManager, 51 String fileName, 52 String markupLanguage, 53 String programmingLanguage, 54 SourceResolver resolver) throws Exception ; 55 56 69 CompiledComponent load( 70 ComponentManager newManager, 71 Source source, 72 String markupLanguage, 73 String programmingLanguage, 74 SourceResolver resolver) throws Exception ; 75 76 82 void release(CompiledComponent component); 83 84 90 void remove(Source source); 91 } 92 | Popular Tags |