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 - Auto generate Interceptor implementation
Summary: Auto generate Interceptor implementation
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords: PLAN
Depends on:
Blocks:
 
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
Exception Reporter:


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.