/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.tradefed.config; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotates a class as representing a {@link IConfiguration} object. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface OptionClass { /** * An optional descriptive alias for this configuration object. *

* This alias will currently be used for two purposes: *

*/ String alias(); /** * Whether or not to add this {@link Option} to the global Option namespace. *

* If true (the default), then it will be possible to specify this option simply * by its name -- --[Option name]. If false, then the alias or * another specific namespace (such as the full classname) must be specified in order to use * {@link Option}s for this class -- * --[OptionClass alias]:[Option name] will work, but --[Option name] * won't resolve to the {@link Option}. *

* FIXME: update documentation methods to distinguish classes/fields that aren't in the global * FIXME: namespace */ boolean global_namespace() default true; }