在用beanshell时,如何把类中的对象传到beanshell可以解析的.bsh文件中去使用?
// testBeanshell.java
public class testBeanshell {
          public static void main( String [] args ) throws EvalError, FileNotFoundException, IOException {        
                     Message m = new Message();                     
                 Object result = new bsh.Interpreter().source("test.bsh");          
                
          }}
//Message.java
public class Message {
        private String nikename;
        private int age = 0;
        public int getAge() {
                return age;
        }
        public void setAge(int age) {
                this.age = age;
        }
        public String getNikename() {
                return nikename;
        }
}//test.bsha = 5;
b = 3;
if (a<b)
c = a + b; 
else
c = 0;
m.setAge(c);
print("=="+m.getAge());
请问如何是类中的m 对象可以传到test.bsh中去使用?