cx.ath.kgslab.spring.axis.client
クラス AxisProxyFactoryBean
java.lang.Object
cx.ath.kgslab.spring.axis.client.AxisInvocationInterceptor
cx.ath.kgslab.spring.axis.client.AxisProxyFactoryBean
- すべての実装インタフェース:
- org.aopalliance.aop.Advice, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
- public class AxisProxyFactoryBean
- extends AxisInvocationInterceptor
- implements org.springframework.beans.factory.FactoryBean
ウェブサービス動的呼出プロキシファクトリ.
与えられたURLのサービスを、
与えられたインタフェースで呼び出すための
プロキシオブジェクトを生成する。
設定例:
<bean id="test" class="cx.ath.kgslab.spring.axis.client.AxisProxyFactoryBean">
<!-- サービスのインターフェイス -->
<property name="serviceInterface">
<value>cx.ath.kgslab.test.TestService</value>
</property>
<!-- サービスを公開しているURL -->
<property name="url">
<value>http://localhost:8080/SpringAxisTest/services/test</value>
</property>
<!-- RPC動的実行に必要なServiceクラス(省略可) -->
<property name="service">
<bean class="org.apache.axis.client.Service"/>
</property>
<!-- タイプマッピングが必要なクラス -->
<property name="typeMappings">
<value>cx.ath.kgslab.test.data.TestData</value>
</property>
</bean>
複数のサービスを公開する場合には、
serviceのプロパティは直接beanを設定するのではなく、
別途beanを設定して、リファレンスを設定するようにしたほうがいいかも。
typeMappingsのプロパティには、
BeanSerializerで処理できるような単純なBeanであればクラス名を書くだけで、
タイプマッピング設定が終了する。
シリアライザ、デシリアライザを別途設定する必要があれば、
TypeMappingDefinitionを使用して詳細な設定を行うことができる。
- バージョン:
- $Revision: 1.3 $
- 作成者:
- NAGASAWA Takahiro
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceInterface
private java.lang.Class serviceInterface
AxisProxyFactoryBean
public AxisProxyFactoryBean()
setServiceInterface
public void setServiceInterface(java.lang.Class serviceInterface)
- サービスを呼び出すインタフェース.
- パラメータ:
serviceInterface
- The serviceInterface to set.
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- 定義:
- インタフェース
org.springframework.beans.factory.FactoryBean
内の getObject
- 例外:
java.lang.Exception
- 関連項目:
FactoryBean.getObject()
getObjectType
public java.lang.Class getObjectType()
- 定義:
- インタフェース
org.springframework.beans.factory.FactoryBean
内の getObjectType
- 関連項目:
FactoryBean.getObjectType()
isSingleton
public boolean isSingleton()
- 定義:
- インタフェース
org.springframework.beans.factory.FactoryBean
内の isSingleton
- 関連項目:
FactoryBean.isSingleton()