Announcement Announcement Module
Collapse
No announcement yet.
My interceptor doesn't work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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>
    </bean>

    <!-- 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>
    </bean>
    </property>
    </bean>

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

    <!-- Thread interceptor -->
    <bean id="loginFormInterceptor" class="org.springframework.aop.support.NameMatchMe 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"/>
    </property>
    </bean>
    </property>
    </bean>


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



    Thanks in advance.

    Best regards.

    Luis.
    Last edited by MrLuis; Feb 23rd, 2006, 01:45 PM.
Working...
X