public abstract class PluginCommunication
extends java.lang.Object
You are free to provide any access to your Plugin (not for DataServices). 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 and Description |
---|
PluginCommunication() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)