Developing Apama Applications > Writing Correlator Plug-ins > Writing Correlator Plug-ins in Java > Creating a plug-in using Java > Permitted signatures for methods
Permitted signatures for methods
For a method to be exposed to EPL it must be public, must be static and every argument plus the return type must be one of the following:
Java Entry
EPL Type
Notes
int
integer
Truncated when passed in, for compatibility
long
integer
String
string
Copy in / copy out
boolean
boolean
double
float
java.math.BigDecimal
decimal
Passing in either NaN or infinity throws an exception that kills the monitor instance if not caught.
com.apama.epl. plugin.Context
context
New type defined for plug-ins
Object
chunk
Any Java object can be held in EPL via a chunk
TYPE[]
sequence<TYPE>
Any above type except int can be passed in as an arbitrary-depth nested array->sequence. The sequence is strictly copy-in, non-modifiable, but can be returned as copy-out.
void
N/A
Permitted as a return type only
Any method not matching this signature is ignored and logged at DEBUG.
Oveloaded functions
Any function with multiple overloads is ignored (none of them are exposed) and this is logged once at WARN and once per method at DEBUG.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.