01: /*
02: * $Id: MockObjectLocator.java 458351 2005-12-23 23:00:29Z ivaynberg $
03: * $Revision: 458351 $
04: * $Date: 2005-12-24 00:00:29 +0100 (Sat, 24 Dec 2005) $
05: *
06: * ==============================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
08: * use this file except in compliance with the License. You may obtain a copy of
09: * the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16: * License for the specific language governing permissions and limitations under
17: * the License.
18: */
19: package wicket.proxy.util;
20:
21: import wicket.proxy.IProxyTargetLocator;
22:
23: /**
24: * Mock object locator implementation
25: *
26: * @author Igor Vaynberg (ivaynberg)
27: *
28: */
29: public class MockObjectLocator implements IProxyTargetLocator {
30: private Object object;
31:
32: /**
33: * @param object
34: */
35: public MockObjectLocator(Object object) {
36: this .object = object;
37: }
38:
39: /**
40: * @see wicket.proxy.IProxyTargetLocator#locateProxyTarget()
41: */
42: public Object locateProxyTarget() {
43: return object;
44: }
45:
46: }
|