Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:34:02+00:00 2026-05-26T07:34:02+00:00

currently I’m creating proxy classes from interfaces with spring 3 xml config like this:

  • 0

currently I’m creating proxy classes from interfaces with spring 3 xml config like this:

<bean id="abstractDaoTarget" class="mypackage.GenericDaoImpl" abstract="true" />

<bean id="abstractDao" class="org.springframework.aop.framework.ProxyFactoryBean" abstract="true" />

<bean id="personDao" parent="abstractDao">
    <property name="proxyInterfaces">
        <value>mypackage.CustomerDao</value>
    </property>
    <property name="target">
        <bean parent="abstractDaoTarget">
        </bean>
    </property>
</bean>

Note that I have only one interface named PersonDao and NO implementation of this interface. The above xml snippet works fine, I can create an ‘instance’ of the interface.

My Question is how can I achieve this with pure Spring 3 annotations without the above xml snippet?
Is it possible without xml?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:34:03+00:00Added an answer on May 26, 2026 at 7:34 am

    Are you looking for an way to generate Beans with an factory completely written in Java without xml? – Then use @Configuration to annotate the class and @Bean to annotate the method that creates the bean. 3.11.1 Basic concepts: @Configuration and @Bean

    If this is not what you mean, then have a look at the code of Hades. This is a project that do the same think like (I guess) you. Creating DAOs from Interfaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently my AJAX is working like this: index.php <a href='one.php' class='ajax'>One</a> <div id=workspace>workspace</div> one.php
Currently my web.config has this: <appSettings> <add key=UserName /> <add key=DBServer /> <add key=DBUserName
Currently, my ListViews look like this: How can I achieve that Windows 7 native
Currently I write the regex like this: /^([\d+]*-)+([\d]*-)+([\d])*$/ I want the result follow this
Currently my code displays a single image from a file path (in SDCard). This
Currently I'm doing some unit tests which are executed from bash. Unit tests are
Currently im having this for displaying my statusmessages: <?php while($showSe = mysql_fetch_array($stringUSS)) { ?>
Currently I'm storing the settings for my custom addins in the registry but this
I am currently running into a problem where an element is coming back from
Currently, Django 1.2.3 User model unicode is def __unicode__(self): return self.username and I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.