org.echarts.servlet.sip
Class EChartsProxyServletToJava
java.lang.Object
org.echarts.servlet.sip.SipToJava
org.echarts.servlet.sip.EChartsProxyServletToJava
public abstract class EChartsProxyServletToJava
- extends SipToJava
Abstract class that can be subclassed for the purposes of providing
an interface from an ECharts for SIP Servlets proxy to its external
environment. An EChartsProxyServletToJava interface class that does
not subclass this class will not inherit this class's putEvent()
method. This class provides a factory method for
creating interface instances, whether it subclasses this class or
not.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EChartsProxyServletToJava
public EChartsProxyServletToJava()
newInstance
public static final <T> T newInstance(EChartsProxyServlet proxy)
throws java.lang.Exception
- Create new interface instance for specified proxy
instance. Creates an instance of class whose name is defined by
a 'sipToJavaClassName' <init-param> element in the
<servlet> element of sip.xml. If no such property is
defined then class name defaults to value of proxy class name
with suffix 'ToJavaImpl' e.g. if proxy class name is
'org.echarts.servlet.sip.features.ucf.UCFServlet' and the
'sipToJavaClassName' <init-param> element is not defined
in sip.xml then this method will create an instance of
'org.echarts.servlet.sip.features.ucf.UCFServletToJavaImpl' if
this class exists; if it doesn't then creates a dynamic proxy
class instance that implements the
'org.echarts.servlet.sip.features.ucf.UCFServletToJava'
interface. The proxy class instance simply returns a null value
for all method calls declaring a return value.
- Parameters:
proxy
- proxy instance associated with the application
session.
- Returns:
- new interface instance
- Throws:
java.lang.Exception
putEvent
protected void putEvent(MachineMonitorEvent event)
- Put an event to the proxy's monitor.
- Parameters:
event
- the event to put to the monitor