...
Code Block |
---|
ApplicationContext context = new ClassPathXmlApplicationContext(
new String[] {"example.xml"});
Example myExample = applicationContext.getBean("my-example");
|
But its important to note that as a user of the DSpace Service Manager, this code is "action" is handled for you and encapsulated within the ServiceManager API.
Code Block |
---|
...
|
...
Example = new DSpace().getSingletonService("my-example",Example.class); |
The Case For Spring
This tutorial focuses on adoption of Spring as a best practice for many aspects of DSpace development, from Core Library definition and instantiation to Application Developer implementation of customizations and addons.
...