All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.maven.plugins.spring.LoadContext Maven / Gradle / Ivy

Go to download

This plugin provides integration between Spring and Maven. Plugin goals support loading an arbitrary Spring context XML file as part of the Maven build lifecycle. The XML file can be on the local file system or be accessible via any URL Spring's resource loading mechanism can understand. Spring's "classpath:context.xml" style notation is supported. From version 2.0.0 on, annotated Java classes can also be used to load a Spring context. The full set of Maven properties are injected into the Spring context (both XML and annotation style) as a bean named "mavenProperties". Maven properties are also registered as a top level PropertySource so that Spring's placeholder resolution framework automatically considers them. See Project Reports -> Plugin Documentation for details on plugin goals.

There is a newer version: 3.1.0
Show newest version
package org.kuali.maven.plugins.spring;

import java.util.Properties;

import org.kuali.common.util.spring.service.SpringService;

public class LoadContext {

	Properties mavenProperties;
	SpringService service;

	public LoadContext() {
		this(null, null);
	}

	public LoadContext(Properties mavenProperties, SpringService service) {
		super();
		this.mavenProperties = mavenProperties;
		this.service = service;
	}

	public Properties getMavenProperties() {
		return mavenProperties;
	}

	public void setMavenProperties(Properties mavenProperties) {
		this.mavenProperties = mavenProperties;
	}

	public SpringService getService() {
		return service;
	}

	public void setService(SpringService service) {
		this.service = service;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy