KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > grlea > logBridge > LogBridgeFactory


1 package org.grlea.logBridge;
2
3 // $Id: LogBridgeFactory.java,v 1.1 2005/03/02 10:46:05 grlea Exp $
4
// Copyright (c) 2005 Graham Lea. All rights reserved.
5

6 // Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
// You may obtain a copy of the License at
9
//
10
// http://www.apache.org/licenses/LICENSE-2.0
11
//
12
// Unless required by applicable law or agreed to in writing, software
13
// distributed under the License is distributed on an "AS IS" BASIS,
14
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
// See the License for the specific language governing permissions and
16
// limitations under the License.
17

18 /**
19  * <p>An interface for objects that provide concrete implementations of {@link LogBridge}s.</p>
20  *
21  * <p>All implementations of <code>LogBridgeFactory</code> should provide a zero-argument
22  * constructor.</p>
23  *
24  * @author grlea
25  * @version $Revision: 1.1 $
26  */

27 public interface
28 LogBridgeFactory
29 {
30    /**
31     * Returns a {@link LogBridge} for the specified class.
32     *
33     * @param sourceClass the class that the Log Bridge object is for, the class which will be the
34     * source of the messages sent to the bridge.
35     *
36     * @return the log bridge.
37     */

38    public LogBridge
39    getLogBridge(Class JavaDoc sourceClass);
40 }
Popular Tags