Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
WildCAT: A Generic Framework for Context-Aware Applications. Copyright (C) 2008 Bull S.A.S. Copyright (C) 2008 EMN Contact: wildcat@ow2.org This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -------------------------------------------------------------------------- $Id: IQueryAdder.java 387 2008-12-17 16:14:01Z barais $ --------------------------------------------------------------------------
package org.ow2.wildcat.osgi.api;
import  com.espertech.esper.client.UpdateListener;

Service providing an event query and an associated listener.

Author(s):
Loris Bouzonnet
public interface IQueryAdder {

    
Add a query and an associated listener to the given context.

Parameters:
context a context
Returns:
the added query
Throws:
ListenerRegistrationException if the registration failed
    Query registerListener(Context contextthrows ListenerRegistrationException;

    

Returns:
an event query
    String getQuery();

    

Returns:
a listener
    UpdateListener getListener();
New to GrepCode? Check out our FAQ X