blob: 397f31967ac41b758dd65190962f620bf9a86bdc [file] [log] [blame]
Stuart McCulloch26e7a5a2011-10-17 10:31:43 +00001/*
2 * Copyright (c) OSGi Alliance (2011). All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.osgi.service.component.annotations;
18
19import java.lang.annotation.ElementType;
20import java.lang.annotation.Retention;
21import java.lang.annotation.RetentionPolicy;
22import java.lang.annotation.Target;
23
24/**
25 * Identify the annotated method as the {@code deactivate} method of a Service
26 * Component.
27 *
28 * <p>
29 * The annotated method is the deactivate method of the Component.
30 *
31 * <p>
32 * This annotation is not processed at runtime by a Service Component Runtime
33 * implementation. It must be processed by tools and used to add a Component
34 * Description to the bundle.
35 *
36 * @see "The deactivate attribute of the component element of a Component Description."
37 * @version $Id$
38 */
39@Retention(RetentionPolicy.CLASS)
40@Target(ElementType.METHOD)
41public @interface Deactivate {
42 // marker annotation
43}