1c2f277a5357901e6856bec38a41ecde8c37dce0bmbishop/*
2a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * Copyright (c) 2004-2005 QOS.ch
3c2f277a5357901e6856bec38a41ecde8c37dce0bmbishop *
4a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * All rights reserved.
5c2f277a5357901e6856bec38a41ecde8c37dce0bmbishop *
6a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * Permission is hereby granted, free of charge, to any person obtaining
7a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * a copy of this software and associated documentation files (the
8a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * "Software"), to  deal in  the Software without  restriction, including
9a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * without limitation  the rights to  use, copy, modify,  merge, publish,
10a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * distribute, and/or sell copies of  the Software, and to permit persons
11a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * to whom  the Software is furnished  to do so, provided  that the above
12a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * copyright notice(s) and this permission notice appear in all copies of
13a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * the  Software and  that both  the above  copyright notice(s)  and this
14a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * permission notice appear in supporting documentation.
15c2f277a5357901e6856bec38a41ecde8c37dce0bmbishop *
16a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
17a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
18a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * MERCHANTABILITY, FITNESS FOR  A PARTICULAR PURPOSE AND NONINFRINGEMENT
19a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * OF  THIRD PARTY  RIGHTS. IN  NO EVENT  SHALL THE  COPYRIGHT  HOLDER OR
20a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * HOLDERS  INCLUDED IN  THIS  NOTICE BE  LIABLE  FOR ANY  CLAIM, OR  ANY
21a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * SPECIAL INDIRECT  OR CONSEQUENTIAL DAMAGES, OR  ANY DAMAGES WHATSOEVER
22a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * RESULTING FROM LOSS  OF USE, DATA OR PROFITS, WHETHER  IN AN ACTION OF
23a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * CONTRACT, NEGLIGENCE  OR OTHER TORTIOUS  ACTION, ARISING OUT OF  OR IN
24a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25c2f277a5357901e6856bec38a41ecde8c37dce0bmbishop *
26a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * Except as  contained in  this notice, the  name of a  copyright holder
27a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * shall not be used in advertising or otherwise to promote the sale, use
28a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * or other dealings in this Software without prior written authorization
29a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * of the copyright holder.
30a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon *
31a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon */
32a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon
33a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlonpackage org.slf4j.osgi.logservice.impl;
34a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon
35a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlonimport org.osgi.framework.Bundle;
36a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlonimport org.osgi.framework.ServiceFactory;
37a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlonimport org.osgi.framework.ServiceRegistration;
38a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon
39a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon/**
40c2f277a5357901e6856bec38a41ecde8c37dce0bmbishop * <code>LogServiceFactory</code> creates LogService implementations.
41a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon *
42a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * @author John Conlon
43a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon * @version $Rev$, $Date$
44a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon */
45b1a5d650f4f78a0a2181c7883456fcf8054b623embishoppublic class LogServiceFactory implements ServiceFactory {
4631212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu    /*
4731212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     * (non-Javadoc)
4831212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     *
4931212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     * @see org.osgi.framework.ServiceFactory#getService(org.osgi.framework.Bundle,
5031212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     * org.osgi.framework.ServiceRegistration)
51a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon     */
52b1a5d650f4f78a0a2181c7883456fcf8054b623embishop    public Object getService(Bundle bundle, ServiceRegistration arg1) {
53a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon        return new LogServiceImpl(bundle);
54a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon    }
55a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon
5631212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu    /*
5731212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     * (non-Javadoc)
5831212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     *
5931212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     * @see org.osgi.framework.ServiceFactory#ungetService(org.osgi.framework.Bundle,
6031212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu     * org.osgi.framework.ServiceRegistration, java.lang.Object)
61a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon     */
62b1a5d650f4f78a0a2181c7883456fcf8054b623embishop    public void ungetService(Bundle bundle, ServiceRegistration arg1, Object arg2) {
6331212435723e2dfd5d6716d1f6a7b0e66a1e6b38Ceki Gulcu        // nothing to do.
64a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon    }
65a31c5cad58cc700b6c713197f4fefe5955601ffdJohn E. Conlon}
66