Add missing packages to Groovy scripts
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
package org.springframework.scripting.groovy;
|
||||
|
||||
import org.springframework.context.ApplicationContext
|
||||
import org.springframework.context.ApplicationContextAware
|
||||
import org.springframework.scripting.ContextScriptBean
|
||||
@@ -10,7 +12,7 @@ class GroovyScriptBean implements ContextScriptBean, ApplicationContextAware {
|
||||
int getAge() {
|
||||
return this.age
|
||||
}
|
||||
|
||||
|
||||
void setAge(int age) {
|
||||
this.age = age
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
package org.springframework.scripting.groovy;
|
||||
|
||||
import org.springframework.beans.factory.FactoryBean
|
||||
|
||||
class TestFactoryBean implements FactoryBean {
|
||||
@@ -13,5 +15,4 @@ class TestFactoryBean implements FactoryBean {
|
||||
public Object getObject() {
|
||||
"test"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
package org.springframework.scripting.groovy;
|
||||
|
||||
return 3 * 2
|
||||
|
||||
Reference in New Issue
Block a user