This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 195412

Summary: Auto generate Interceptor implementation
Product: javaee Reporter: arungupta <arungupta>
Component: CDIAssignee: Denis Anisimov <ads>
Status: RESOLVED FIXED    
Severity: normal CC: pjiricka
Priority: P3 Keywords: PLAN
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.