Announcement Announcement Module
Collapse
No announcement yet.
ThreadLocalTargetSource config via annotations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ThreadLocalTargetSource config via annotations

    Hi

    I have the following bean config which I would like to translate to annotation-based config, but I'm struggling to find any documentation on how a ThreadLocalTargetSource bean might be configed via annotations.

    I guess I'd like to add an annotation to the MyBean class code which would need to specify that it is a bean being managed by (ie feeds the targetBeanName property of) org.springframework.aop.target.ThreadLocalTargetSo urce

    Any pointers would be very much appreciated...

    Steve



    Code:
    <bean id="myThreadLocalBean" class="uk.co.hits.threadlocaltest.MyBean" scope="prototype">
    	</bean>
    	
    
    	<bean id="threadlocalTargetSource" class="org.springframework.aop.target.ThreadLocalTargetSource">
           <property name="targetBeanName" value="myThreadLocalBean" />
        </bean>
Working...
X