My favorites | Sign in
t-2
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 121: @ParameterResolverで引数アノテーションのリゾルバクラスを指定できるようにする
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  shinpei.ohtani@gmail.com


 
Project Member Reported by shinpei.ohtani@gmail.com, Sep 7, 2008
@ParameterResolverで引数アノテーションのリゾルバクラスを指定できるようにする.
たとえば以下のようにする.


{{{
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@ParameterResolver(RequestParamParameterResolver.class)
public @interface RequestParam {
}}}

挙動としては、
・DIコンテナがあれば、そこから持ってくる
・DIコンテナがなくても、インスタンス化してそれを使いまわす


ParameterResolverのクラスはシングルトンを基本とする.

適用バージョン:未定






Powered by Google Project Hosting