|
TV-Browser 3.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdevplugin.PluginCommunication
public abstract class PluginCommunication
PluginCommunication is the superclass for all classes that are granting access to a Plugin. This class should only contain public methods, that are at best self describing in name to use them with reflection from other Plugins.
You are free to provide any access to your Plugin (not for DataSevices). Provide it in that way that any Plugin using this class to connect to your Plugin can be sure not to run in any unexpected situation.
If you are using this class to connect to another Plugin take nothing for granted, every new Plugin version of the Plugin you want to connect to can make changes to the class or even remove support for it (you can take that personally because it's really bad style to just remove functions without prior warning)
Constructor Summary | |
---|---|
PluginCommunication()
|
Method Summary | |
---|---|
java.lang.String[] |
getDiscontinuedMethodNames()
Always provide information about discountinued methods. |
java.util.ArrayList<java.lang.Class<?>[]> |
getMethodParametersOfDiscontinuedMethod(java.lang.String methodName)
You may want to make changes to the parameter of a method. |
java.lang.Class<?> |
getReturnValueOfDiscontinuedMethod(java.lang.String methodName,
java.lang.Class<?>[] parameter)
You may want to make changes to the return value of a method. |
abstract int |
getVersion()
Always increase the version number if you make changes to this communication class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginCommunication()
Method Detail |
---|
public abstract int getVersion()
public java.lang.String[] getDiscontinuedMethodNames()
null
if there are no discontinued methods.public java.util.ArrayList<java.lang.Class<?>[]> getMethodParametersOfDiscontinuedMethod(java.lang.String methodName)
methodName
- The name of the method to get the parameter information.
public java.lang.Class<?> getReturnValueOfDiscontinuedMethod(java.lang.String methodName, java.lang.Class<?>[] parameter)
methodName
- The name of the method to get the return value type information.parameter
- An array with the parameters of the discontinued method to get the return value for.
|
TV-Browser 3.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |