Package org.javlo.template
Class TemplatePlugin
- java.lang.Object
-
- org.javlo.template.TemplatePlugin
-
public class TemplatePlugin extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemplatePlugin.TemplatePluginIdComparator
-
Constructor Summary
Constructors Constructor Description TemplatePlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFolder()
folder of the plugin inside the template.String
getHTMLHead(GlobalContext globalContext)
String
getId()
combination of name and version.static TemplatePlugin
getInstance(File templatePluginFolder)
String
getLabel()
String
getName()
String
getVersion()
void
importInTemplate(ContentContext ctx, File templateFolder)
boolean
isActiveInEdition()
boolean
isActiveOnScreenshot()
protected Properties
loadConfig(String config)
-
-
-
Field Detail
-
HOME_KEY
public static final String HOME_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static TemplatePlugin getInstance(File templatePluginFolder) throws IOException
- Throws:
IOException
-
getHTMLHead
public String getHTMLHead(GlobalContext globalContext) throws IOException
- Throws:
IOException
-
isActiveInEdition
public boolean isActiveInEdition()
-
isActiveOnScreenshot
public boolean isActiveOnScreenshot()
-
importInTemplate
public void importInTemplate(ContentContext ctx, File templateFolder) throws IOException
- Throws:
IOException
-
getName
public String getName()
-
getLabel
public String getLabel()
-
getVersion
public String getVersion()
-
getId
public String getId()
combination of name and version.- Returns:
-
getFolder
public String getFolder()
folder of the plugin inside the template.- Returns:
-
loadConfig
protected Properties loadConfig(String config)
-
-