Bug 195412 - Auto generate Interceptor implementation
Auto generate Interceptor implementation
Status: RESOLVED FIXED
Product: javaee
Classification: Unclassified
Component: CDI
7.0
All All
: P3 (vote)
: 7.1
Assigned To: Denis Anisimov
issues@javaee
: PLAN
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-13 10:50 UTC by arungupta
Modified: 2011-05-26 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arungupta 2011-02-13 10:50:18 UTC
In NetBeans 7, it'd be nice if I can right-click on an InterceptorBinding and say "Generate an implementation". Otherwise for the following wizard-generated binding:

@Inherited
@InterceptorBinding
@Retention(RUNTIME)
@Target({METHOD, TYPE})
public @interface LoggingInterceptorBinding {
}

I've to manually edit the boilerplate code:

@Interceptor
@LoggingInterceptorBinding
public class LoggingInterceptor {

    public Object log(InvocationContext context) throws Exception {
        return context.proceed();
    }
}
Comment 1 Denis Anisimov 2011-05-13 13:43:59 UTC
web-main
changeset:   191082:d647d48ab5eb

The action is available via "Insert code" popup menu item.
Comment 2 Petr Jiricka 2011-05-26 14:41:57 UTC
I think this is not in 7.0.1 -> TM=Dev.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo