com.frameworkset.proxy.TestProxyImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-util Show documentation
Show all versions of bboss-util Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
package com.frameworkset.proxy;
/**
* Title:
*
* Description:
*
* Copyright: Copyright (c) 2005
*
* Company:
*
* @author biaoping.yin
* @version 1.0
*/
public class TestProxyImpl implements TestProxy{
private String string;
public static void main(String[] args) {
TestProxyImpl testproxyimpl = new TestProxyImpl();
Object test = ProxyFactory.createProxy(new TestInvocationHandler(testproxyimpl));
//System.out.println("test:"+test);
TestProxy proxy = (TestProxy)test;
try {
System.out.println(proxy.getString());
} catch (Throwable ex) {
ex.printStackTrace();
}
}
public String getString() throws Throwable {
return string == null?"hello":string;
}
public void setString(String string) {
this.string = string;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy