/* * 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 Xenon (javadoc) * */ public interface PropertyDef extends ArgDef { /** * 設定対象となるプロパティ名を返します。 *

* プロパティ名とは、diconファイルに記述されている<property>要素のname属性です。 * すなわち、インジェクション対象となるプロパティまたはフィールドを特定するためのものです。 *

* * @return 設定対象となるプロパティ名 */ public String getPropertyName(); /** * バイディングタイプ定義を返します。 * * @return バインディングタイプ定義 */ public BindingTypeDef getBindingTypeDef(); /** * バイディングタイプ定義を設定します。 * * @param bindingTypeDef * バイディングタイプ定義 */ public void setBindingTypeDef(BindingTypeDef bindingTypeDef); /** * アクセスタイプ定義を返します。 * * @return アクセスタイプ定義 */ public AccessTypeDef getAccessTypeDef(); /** * アクセスタイプ定義を設定します。 * * @param accessTypeDef * アクセスタイプ定義 */ public void setAccessTypeDef(AccessTypeDef accessTypeDef); }