1 48 49 package org.jpublish.component; 50 51 import java.io.IOException ; 52 import java.util.Map ; 53 54 import com.anthonyeden.lib.config.Configuration; 55 import com.anthonyeden.lib.config.ConfigurationException; 56 import org.jpublish.RequestContext; 57 import org.jpublish.SiteContext; 58 import org.jpublish.repository.Repository; 59 import org.jpublish.view.ViewRenderException; 60 import org.jpublish.view.ViewRenderer; 61 62 67 public interface Component { 68 69 74 public String getName(); 75 76 81 public String getDescription(); 82 83 88 public Map getProperties(); 89 90 95 public SiteContext getSiteContext(); 96 97 102 public void setSiteContext(SiteContext siteContext); 103 104 109 public Repository getViewRepository(); 110 111 116 public void setViewRepository(Repository viewRepository); 117 118 124 public ViewRenderer getViewRenderer(); 125 126 132 public void setViewRenderer(ViewRenderer viewRenderer); 133 134 140 public void loadConfiguration(Configuration configuration) 141 throws ConfigurationException; 142 143 152 public String render(String path, RequestContext context) 153 throws IOException , ViewRenderException; 154 155 } 156 | Popular Tags |