Developing Apama Applications > Apama EPL Reference > Variables > Variable declarations > Reference-type variable declarations > Listener variable declarations
Listener variable declarations
Listener variable values are references to listeners and cannot be initialized in the way other variables can. Instead, you must use the on statement or from statement to assign a value to a listener variable.
ListenerDeclaration
Rule component
The Identifier becomes the listener variable’s name.
Example
listener l;
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.