KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > osgi > service > wireadmin > BasicEnvelope


1 /*
2  * $Header: /cvshome/build/org.osgi.service.wireadmin/src/org/osgi/service/wireadmin/BasicEnvelope.java,v 1.9 2006/06/16 16:31:43 hargrave Exp $
3  *
4  * Copyright (c) OSGi Alliance (2002, 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.wireadmin;
19
20 /**
21  * <code>BasicEnvelope</code> is an implementation of the {@link Envelope}
22  * interface
23  *
24  * @version $Revision: 1.9 $
25  */

26 public class BasicEnvelope implements Envelope {
27     Object JavaDoc value;
28     Object JavaDoc identification;
29     String JavaDoc scope;
30
31     /**
32      * Constructor.
33      *
34      * @param value Content of this envelope, may be <code>null</code>.
35      * @param identification Identifying object for this <code>Envelope</code>
36      * object, must not be <code>null</code>
37      * @param scope Scope name for this object, must not be <code>null</code>
38      * @see Envelope
39      */

40     public BasicEnvelope(Object JavaDoc value, Object JavaDoc identification, String JavaDoc scope) {
41         this.value = value;
42         this.identification = identification;
43         this.scope = scope;
44     }
45
46     /**
47      * @see org.osgi.service.wireadmin.Envelope#getValue()
48      */

49     public Object JavaDoc getValue() {
50         return value;
51     }
52
53     /**
54      * @see org.osgi.service.wireadmin.Envelope#getIdentification()
55      */

56     public Object JavaDoc getIdentification() {
57         return identification;
58     }
59
60     /**
61      * @see org.osgi.service.wireadmin.Envelope#getScope()
62      */

63     public String JavaDoc getScope() {
64         return scope;
65     }
66 }
67
Popular Tags