Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will @In support generic? #27

Closed
zqq90 opened this issue May 23, 2013 · 3 comments
Closed

Will @In support generic? #27

zqq90 opened this issue May 23, 2013 · 3 comments
Assignees

Comments

@zqq90
Copy link
Member

zqq90 commented May 23, 2013

GenericAction<E, T>

@In
protected E id;
@In
protected E[] ids;
@In(value = "$_this")
protected T entity;

now ScopeData.In.type make not different what inject into the action

@ghost ghost assigned igr May 23, 2013
@igr
Copy link
Member

igr commented May 23, 2013

Is this what are you asking for? Have one class, like:

public class BaseAction<A, B> {
    @In A input;
    @Out B output;
}

and the action like this:

public class GenAction extends BaseAction<String, Integer> {
}

and to be able to determine A as String and B as Integer?

@zqq90
Copy link
Member Author

zqq90 commented May 24, 2013

yes,you get it.
now i use a special ConfigInterceptor inject them . however , it makes my webapp in ugly shape

@igr igr closed this as completed in 6bb2921 May 24, 2013
@igr
Copy link
Member

igr commented May 24, 2013

Hey @zqq90, nice idea :) Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants