public interface TVCPlugin
A plugin is typically registered through the web.xml file:
<init-param>
<param-name>tvc.core.plugins</param-name>
<param-value>com.company.MyTVCPlugin</param-value>
</init-param>
Note that if you have several plugins, they should be comma separated.
You can also take advantage of the logging functionality within TVC, by simply in your constructor do as this code example:
package com.company;
import com.technia.tvc.core.TVCSystem;
import com.technia.tvc.core.TVCLogManager;
import com.technia.tvc.core.TVCPlugin;
import com.technia.tvc.log4j.Logger;
public class MyPlugin implements TVCPlugin {
public MyPlugin() {
String pattern = "[CUSTOM] [%t]%x %5p %d{HH:mm:ss,SSS} (%F:%L) - %m%n";
TVCLogManager.addConsoleAppender("com.company", pattern);
Logger l = Logger.getLogger("com.company");
if (TVCSystem.getInstance().isDevelopmentMode()) {
l.setLevel(Level.DEBUG);
} else {
l.setLevel(Level.ERROR);
}
}
...
}
TVCPluginAdapter| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getActionConfigURL()
Returns the URL from which the plugin specific action configurations
should be loaded.
|
java.net.URL |
getAjaxConfigURL()
Returns the URL from which the plugin specific ajax services should be
loaded.
|
java.lang.String |
getDescription()
Returns a short human readable description of the plugin.
|
java.lang.String |
getDisplayName()
Returns the plugin's display name.
|
java.lang.String |
getName()
Returns the name of the plugin.
|
java.lang.String |
getStringResourceName()
Returns the name of the string resource for this component.
|
java.net.URL |
getTypeMappingsURL()
Returns the URL from which the plugin specific type mappings should be
loaded.
|
java.lang.String getName()
java.lang.String getDisplayName()
java.lang.String getDescription()
java.net.URL getActionConfigURL()
java.net.URL getAjaxConfigURL()
java.net.URL getTypeMappingsURL()
java.lang.String getStringResourceName()
Copyright ? Technia AB. All Rights Reserved.