/*
* Copyright 2008 biaoping.yin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.frameworkset.spi.syn;
public class A1 implements AI{
public void testSynInvoke(String msg) {
System.out.println("A1:" + msg);
}
public void testSynInvoke() {
System.out.println("A1:no param");
}
public void testNoSynInvoke()
{
System.out.println("A1:NoSynInvoke");
}
public String testSynInvokeWithReturn() {
System.out.println("call A1.testSynInvokeWithReturn()");
return "return is A1";
}
public String testSynInvokeWithException() throws Exception {
System.out.println("call A1.testSynInvokeWithException()");
// if(true)
// throw new Exception("A1 throw a exception");
return "A1 exception find.";
}
public void testSameName() {
System.out.println("call A1.testSameName()");
}
public void testSameName(String msg) {
System.out.println("call A1.testSameName(String msg):" + msg);
}
public void testSameName1() {
System.out.println("call A1.testSameName1()");
}
public void testSameName1(String msg) {
System.out.println("call A1.testSameName1(String msg):" + msg);
}
public int testInt(int i) {
System.out.println("call A1.testInt(int i):" + i);
return i;
}
public int testIntNoSyn(int i) {
System.out.println("call A1.testIntNoSyn(int i):" + i);
return i;
}
}