Stuart McCulloch | 26e7a5a | 2011-10-17 10:31:43 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.osgi.service.component.annotations; |
| 18 | |
| 19 | import java.lang.annotation.ElementType; |
| 20 | import java.lang.annotation.Retention; |
| 21 | import java.lang.annotation.RetentionPolicy; |
| 22 | import java.lang.annotation.Target; |
| 23 | |
| 24 | /** |
| 25 | * Identify the annotated method as the {@code activate} method of a Service |
| 26 | * Component. |
| 27 | * |
| 28 | * <p> |
| 29 | * The annotated method is the activate 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 activate attribute of the component element of a Component Description." |
| 37 | * @version $Id$ |
| 38 | */ |
| 39 | @Retention(RetentionPolicy.CLASS) |
| 40 | @Target(ElementType.METHOD) |
| 41 | public @interface Activate { |
| 42 | // marker annotation |
| 43 | } |