All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frameworkset.proxy.TestProxyImpl Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

There is a newer version: 6.2.7
Show newest version
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