KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > osgi > framework > Configurable


1 /*
2  * $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/Configurable.java,v 1.12 2007/02/20 00:07:22 hargrave Exp $
3  *
4  * Copyright (c) OSGi Alliance (2000, 2007). 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 package org.osgi.framework;
20
21 /**
22  * Supports a configuration object.
23  *
24  * <p>
25  * <code>Configurable</code> is an interface that should be used by a bundle
26  * developer in support of a configurable service. Bundles that need to
27  * configure a service may test to determine if the service object is an
28  * <code>instanceof Configurable</code>.
29  *
30  * @deprecated As of 1.2. Please use Configuration Admin service.
31  * @version $Revision: 1.12 $
32  */

33 public interface Configurable {
34     /**
35      * Returns this service's configuration object.
36      *
37      * <p>
38      * Services implementing <code>Configurable</code> should take care when
39      * returning a service configuration object since this object is probably
40      * sensitive.
41      * <p>
42      * If the Java Runtime Environment supports permissions, it is recommended
43      * that the caller is checked for some appropriate permission before
44      * returning the configuration object.
45      *
46      * @return The configuration object for this service.
47      * @throws java.lang.SecurityException If the caller does not have an
48      * appropriate permission and the Java Runtime Environment supports
49      * permissions.
50      * @deprecated As of 1.2. Please use Configuration Admin service.
51      */

52     public Object JavaDoc getConfigurationObject();
53 }
54
Popular Tags