Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
408 bytes
|
Line | |
---|
1 | package com.framsticks.util.dispatching; |
---|
2 | |
---|
3 | import com.framsticks.util.ExceptionHandler; |
---|
4 | import com.framsticks.util.FramsticksException; |
---|
5 | |
---|
6 | /** |
---|
7 | * @author Piotr Sniegowski |
---|
8 | */ |
---|
9 | public abstract class FutureHandler<T> implements ExceptionHandler { |
---|
10 | |
---|
11 | protected abstract void result(T result); |
---|
12 | |
---|
13 | public final void pass(T result) { |
---|
14 | try { |
---|
15 | result(result); |
---|
16 | } catch (FramsticksException e) { |
---|
17 | handle(e); |
---|
18 | } |
---|
19 | } |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.