add throws IOException to CustomNameResolver interface

This commit is contained in:
Paul_Loy 2011-05-23 15:55:07 +01:00 committed by kimchy
parent d474025b30
commit 004f91dfc0
1 changed files with 2 additions and 2 deletions

View File

@ -70,12 +70,12 @@ public class NetworkService extends AbstractComponent {
/**
* Resolves the default value if possible. If not, return <tt>null</tt>.
*/
InetAddress resolveDefault();
InetAddress resolveDefault() throws IOException;
/**
* Resolves a custom value handling, return <tt>null</tt> if can't handle it.
*/
InetAddress resolveIfPossible(String value);
InetAddress resolveIfPossible(String value) throws IOException;
}
private final List<CustomNameResolver> customNameResolvers = new CopyOnWriteArrayList<CustomNameResolver>();