01: package com.mockrunner.tag;
02:
03: import com.mockrunner.mock.web.WebMockObjectFactory;
04:
05: /**
06: * Simple base class for implementations of
07: * {@link com.mockrunner.tag.DynamicChild}.
08: */
09: public abstract class AbstractDynamicChild implements DynamicChild {
10: private WebMockObjectFactory factory;
11:
12: public AbstractDynamicChild(WebMockObjectFactory factory) {
13: this .factory = factory;
14: }
15:
16: /**
17: * Get the {@link com.mockrunner.mock.web.WebMockObjectFactory} passed
18: * in the constructor.
19: * @return the {@link com.mockrunner.mock.web.WebMockObjectFactory}
20: */
21: public WebMockObjectFactory getWebMockObjectFactory() {
22: return factory;
23: }
24: }
|