]>
git.argeo.org Git - gpl/argeo-slc.git/blob - spring/AbstractSpringTask.java
1 package org
.argeo
.slc
.ant
.spring
;
3 import org
.springframework
.context
.ApplicationContext
;
5 import org
.apache
.tools
.ant
.Task
;
7 import org
.argeo
.slc
.ant
.SlcProjectHelper
;
9 /** Abstract Ant task providing access to a Spring context.*/
10 public abstract class AbstractSpringTask
extends Task
{
12 /** Gets the related Spring context.*/
13 protected ApplicationContext
getContext() {
14 return (ApplicationContext
) getProject().getReference(
15 SlcProjectHelper
.REF_ROOT_CONTEXT
);