01: /*
02: * Copyright (C) The Apache Software Foundation. All rights reserved.
03: *
04: * This software is published under the terms of the Apache Software License
05: * version 1.1, a copy of which has been included with this distribution in
06: * the LICENSE file.
07: */
08: package org.jivesoftware.util.log;
09:
10: /**
11: * Interface implemented by components that wish to
12: * delegate ErrorHandling to an ErrorHandler.
13: *
14: * @author <a href="mailto:peter@apache.org">Peter Donald</a>
15: */
16: public interface ErrorAware {
17: /**
18: * Provide component with ErrorHandler.
19: *
20: * @param errorHandler the errorHandler
21: */
22: void setErrorHandler(ErrorHandler errorHandler);
23: }
|