blob: 27f5ec2dd4ee13338301c32c6f9f98a62683e18d [file] [log] [blame]
Richard S. Hall930fecc2005-08-16 18:33:34 +00001/*
2 * $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/Configurable.java,v 1.7 2005/05/13 20:32:55 hargrave Exp $
3 *
4 * Copyright (c) OSGi Alliance (2000, 2005). All Rights Reserved.
5 *
6 * This program and the accompanying materials are made available under the
7 * terms of the Eclipse Public License v1.0 which accompanies this
8 * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html.
9 */
10
11package org.osgi.framework;
12
13/**
14 * Supports a configuration object.
15 *
16 * <p><code>Configurable</code> is an interface that should be used by a bundle developer in support
17 * of a configurable service.
18 * Bundles that need to configure a service may test to determine
19 * if the service object is an <code>instanceof Configurable</code>.
20 *
21 * @version $Revision: 1.7 $
22 * @deprecated Please use the Configuration Admin
23 */
24public abstract interface Configurable
25{
26 /**
27 * Returns this service's configuration object.
28 *
29 * <p>Services implementing <code>Configurable</code> should take care when returning a
30 * service configuration object since this object is probably sensitive.
31 * <p>If the Java Runtime Environment supports permissions, it is recommended that
32 * the caller is checked for the appropriate permission before returning the configuration object.
33 * It is recommended that callers possessing the appropriate
34 * {@link AdminPermission} always be allowed to get the configuration object.
35 *
36 * @return The configuration object for this service.
37 * @exception java.lang.SecurityException If the caller does not have
38 * an appropriate permission and the Java Runtime Environment supports permissions.
39 * @deprecated Please use the Configuration Admin
40 */
41 public abstract Object getConfigurationObject();
42}
43
44