org.kuali.common.util.project.spring
Class AutowiredProjectConfig
java.lang.Object
org.kuali.common.util.project.spring.AutowiredProjectConfig
@Configuration
public class AutowiredProjectConfig
- extends Object
This class automatically wires a Project
object into the Spring context:
@Autowired
Project project;
For Spring process launched by Maven via the spring-maven-plugin the project wiring is completed entirely in memory using the java.util.Properties
object from the
Maven runtime.
For Spring process launched using any other method, the project wiring is completed by loading the project.properties
file corresponding to the
[groupId:artifactId]
for the current project. The properties file for the kuali-util
project (for example) is located at:
classpath:META-INF/org/kuali/common/kuali-util/project.properties
The project.properties
file for every Kuali project is automatically created by Maven early in the default build lifecycle, (the generate-resources
phase) and is thus available to any build process that comes after that. For example, the test
phase.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutowiredProjectConfig
public AutowiredProjectConfig()
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.