Results 1 to 3 of 3

Thread: Bean class

  1. #1
    Join Date
    Aug 2006
    Posts
    1

    Default Bean class

    Hello.
    I have a service TestService (interface) and an adapter TestServiceAdapter (dummy implementation).
    In the xml file I declare my bean as :
    <bean id="testService" class="com.test.TestServiceAdapter"/>

    Is there a posibility to specify the bean class inside a property file and specify that property on the class attribute?

    Thanks,
    Mike

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    As far as I know, this is not possible (if it is, it would be a rather new feature).

    Regards,
    Andreas

  3. #3
    Join Date
    Jan 2005
    Posts
    144

    Default

    You may use AOP and a TargetSource to switch between two implementations. I don't know enough about TargetSources to give you an example, take a look at http://www.springframework.org/docs/...p-targetsource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •