001    /*
002     * Copyright (c) OSGi Alliance (2002, 2008). All Rights Reserved.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.osgi.service.wireadmin;
017    
018    /**
019     * <code>BasicEnvelope</code> is an implementation of the {@link Envelope}
020     * interface
021     * 
022     * @version $Revision: 5673 $
023     */
024    public class BasicEnvelope implements Envelope {
025            Object  value;
026            Object  identification;
027            String  scope;
028    
029            /**
030             * Constructor.
031             * 
032             * @param value Content of this envelope, may be <code>null</code>.
033             * @param identification Identifying object for this <code>Envelope</code>
034             *        object, must not be <code>null</code>
035             * @param scope Scope name for this object, must not be <code>null</code>
036             * @see Envelope
037             */
038            public BasicEnvelope(Object value, Object identification, String scope) {
039                    this.value = value;
040                    this.identification = identification;
041                    this.scope = scope;
042            }
043    
044            /**
045             * @see org.osgi.service.wireadmin.Envelope#getValue()
046             */
047            public Object getValue() {
048                    return value;
049            }
050    
051            /**
052             * @see org.osgi.service.wireadmin.Envelope#getIdentification()
053             */
054            public Object getIdentification() {
055                    return identification;
056            }
057    
058            /**
059             * @see org.osgi.service.wireadmin.Envelope#getScope()
060             */
061            public String getScope() {
062                    return scope;
063            }
064    }