Announcement Announcement Module
No announcement yet.
My interceptor doesn't work Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • My interceptor doesn't work

    Dear all,

    I want to show an splash window while the my SWT application is loading. I planned to show that splash until the login window is opened.
    When this window appear, my idea is intercept the open method and to close the splash window. This interceptor doesn't work and I don't know why ?
    I compile the code without errors but when I execute the code it doesn't do anything.
    Somebody can help me with my issue? Why it does not work? Why the interceptor does not catch the open method?
    The other interceptor (threadInterceptor) works ok!.
    I'm attaching an extract of context definition in order to let you know what I'm doing and understand my problem.

    <!-- Login window -->
    <bean id="loginWindow" class="com.silex_it.gui.swt.LoginWindow" init-method="init" depends-on="loginFormInterceptor">
    <property name="mainWindow"><ref bean="mainWindow"/></property>

    <!-- Message processor -->
    <bean id="messageProcessor" class="com.clv.bas.message.processor.impl.ReaderWr iterBasedProcessorImpl">
    <property name="textLineBasedProcessor">
    <bean class="com.clv.bas.message.processor.impl.FixedLen gthMessageProcessor">
    <property name="weightInit"><value>1</value></property>
    <property name="weightLength"><value>7</value></property>
    <property name="productCodeInit"><value>10</value></property>
    <property name="productCodeLength"><value>8</value></property>
    <property name="tareCodeInit"><value>18</value></property>
    <property name="tareCodeLength"><value>8</value></property>
    <property name="operatorCodeInit"><value>26</value></property>
    <property name="operatorCodeLength"><value>8</value></property>
    <property name="okResponse"><value>OK</value></property>
    <property name="errorResponse"><value>ERROR</value></property>

    <!-- Proxy for thread -->
    <bean id="threadInterceptor" class=" thodPointcutAdvisor">
    <property name="mappedNames"><value>process</value></property>
    <property name="advice"><bean class="com.silex_it.spring.thread.ThreadIntercepto r"/></property>

    <!-- Thread interceptor -->
    <bean id="loginFormInterceptor" class=" thodPointcutAdvisor">
    <property name="mappedNames"><value>open,close</value></property>
    <property name="advice">
    <bean class="com.clv.bas.thread.SplashInterceptor" depends-on="presentacion">
    <property name="splash">
    <ref bean="presentacion"/>

    <bean class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator" autowire="no">
    <property name="proxyTargetClass">
    <property name="interceptorNames">
    <idref bean="threadInterceptor"/>
    <idref bean="loginFormInterceptor"/>
    <property name="beanNames">
    <idref bean="messageProcessor"/>
    <idref bean="loginWindow"/>

    Thanks in advance.

    Best regards.

    Last edited by MrLuis; Feb 23rd, 2006, 02:45 PM.