[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2994) Support all pages.xml functionality through annotations for Wicket

Marcell Barbacena (JIRA) jira-events at lists.jboss.org
Mon Jun 23 22:03:28 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2994?page=comments#action_12418633 ] 
            
Marcell Barbacena commented on JBSEAM-2994:
-------------------------------------------

Well, maybe we do not need a classloader...
We can attach a proxy of WebRequestCycleProcessor that the resolver method dynamically creates a proxy of the same type returned and that load the triggered method annotations. I do not know if it is possible to create this proxy with CGLib...

Like:

public class ProxyRequestCycleProcessor implements IRequestCycleProcessor {
  private IRequestCycleProcessor proxy;
  public IRequestTarget resolve(RequestCycle requestCycle, RequestParameters requestParameters) {
    IRequestTarget target = proxy.resolve(requestCycle, requestParameters);
    return createSeamProxy(target);
  }
  private IRequestTarget createSeamProxy(IRequestTarget target) {
     // creates a proxy using this cglib method interceptor
     // public Object intercept(Object object, Method method, Object[] args, MethodProxy proxy) throws Throwable {
     //   method.isAnnotationPresent(Begin.class) --> do begin 
     //   other annotations...
     // }
  }
}

> Support all pages.xml functionality through annotations for Wicket
> ------------------------------------------------------------------
>
>                 Key: JBSEAM-2994
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2994
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Wicket
>    Affects Versions: 2.1.0.A1
>            Reporter: Pete Muir
>         Assigned To: Pete Muir
>            Priority: Critical
>             Fix For: 2.1.0.BETA1
>
>
> Initially via a factory which will apply interceptors to all components which require Seam support
> Look at some sort of byte code enhancement later
> Also, support injection/disinjection

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list