KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > osgi > service > device > Match


1 /*
2  * $Header: /cvshome/build/org.osgi.service.device/src/org/osgi/service/device/Match.java,v 1.9 2006/06/16 16:31:29 hargrave Exp $
3  *
4  * Copyright (c) OSGi Alliance (2001, 2006). 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 package org.osgi.service.device;
19
20 import org.osgi.framework.ServiceReference;
21
22 /**
23  * Instances of <code>Match</code> are used in the {@link DriverSelector#select}
24  * method to identify Driver services matching a Device service.
25  *
26  * @version $Revision: 1.9 $
27  * @since 1.1
28  * @see DriverSelector
29  */

30 public interface Match {
31     /**
32      * Return the reference to a Driver service.
33      *
34      * @return <code>ServiceReference</code> object to a Driver service.
35      */

36     public ServiceReference getDriver();
37
38     /**
39      * Return the match value of this object.
40      *
41      * @return the match value returned by this Driver service.
42      */

43     public int getMatchValue();
44 }
45
Popular Tags