Access mapped Spring class from unmapped Java class.

Posted on 2007-10-03
Last Modified: 2013-11-24
Can we access a spring-mapped class from a non-mapped plain Java class? How do we do this?
Question by:pratikbm
    LVL 19

    Accepted Solution

    A class is a class is a class..
    you should be able to instanciate it by its name...
    LVL 92

    Assisted Solution

    yes, you'd need to pass a reference to it or the app context
    LVL 23

    Assisted Solution

    Yes you can do it .. look at this the end..

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    A short article about problems I had with the new location API and permissions in Marshmallow
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now