/* * Copyright 2004-2006 the Seasar Foundation and the Others. * * 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 org.seasar.framework.container; /** * このインターフェースは、 引数定義を登録および取得することができるオブジェクトを表します。 *

* 引数定義は複数登録することが出来ます。 引数定義の取得はインデックス番号を指定して行います。 *

* * @author higa * @author jundu (Javadoc) * * @see ArgDef */ public interface ArgDefAware { /** * 引数定義を登録(追加)します。 * * @param argDef * 引数定義 */ public void addArgDef(ArgDef argDef); /** * 登録されている{@link ArgDef 引数定義}の数を返します。 * * @return 登録されている引数定義の数 */ public int getArgDefSize(); /** * 指定されたインデックス番号indexの引数定義を返します。 *

* インデックス番号は、 登録した順番に 0,1,2,… となります。 *

* * @param index * 引数定義を指定するインデックス番号 * @return 引数定義 * @throws java.lang.IndexOutOfBoundsException * インデックス番号が範囲外の場合 (index < 0 || index >= getArgDefSize()) */ public ArgDef getArgDef(int index); }