Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
21. May 2009, 07:11 America/New_York | Link

can anyone tell me what is the exact use of @BypassInterceptors and the cases where to use exactly this annotation.

3 Replies:
21. May 2009, 07:15 America/New_York | Link

A component that is annotated with BypassInterceptors will not have access to any of the services that seam provides using intereceptors, such as bijection and transaction management. The main reason for using this is to improve performance.

13. Oct 2010, 18:34 America/New_York | Link

Does this include bypassing initialization of the component itself inside components.xml?

Java source:

package com.example;
...
@BypassInterceptors
public class Foo {
    public void setBars(List<Integer> bars) {...}
    ...
}

components.xml

<component name="foo" class="com.example.Foo">
    <property name="bars">
        <value>1</value>
        <value>2</value>
        <value>3</value>
    </property>
</components>

Would using @BypassInterceptors make my component be populated with bars={1, 2, 3}? Or would this be skipped?

13. Oct 2010, 18:42 America/New_York | Link

That will still work, as components.xml values are set at creation time, unlike injected values.