/*
* Copyright (C) 2004 Roman Krylov
* rkrylov@mail.ru
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package org.JWrapper;
public class Signal1 extends Signal >
implements function1
{
public Signal1()
{ }
public Void Op(Arg_t arg) throws Exception
{
int N = slots.size();
//for(function1 slot : slots)// <- in some inevitable cases could throw ConcurrentModificationException
for(int i=0; i slot = slots.get(i);
try{ slot.Op(arg); }
catch(Throwable th)
{
System.out.println("--- Signal1: Exception calling slot "+slot.toString()/*+", disconnecting"*/);
th.printStackTrace();
//this.disconnect(slot);
}
}
return null;
}
}
|