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.RuntimeAttribute}.
08: */
09: public abstract class AbstractRuntimeAttribute implements
10: RuntimeAttribute {
11: private WebMockObjectFactory factory;
12:
13: public AbstractRuntimeAttribute(WebMockObjectFactory factory) {
14: this .factory = factory;
15: }
16:
17: /**
18: * Get the {@link com.mockrunner.mock.web.WebMockObjectFactory} passed
19: * in the constructor.
20: * @return the {@link com.mockrunner.mock.web.WebMockObjectFactory}
21: */
22: public WebMockObjectFactory getWebMockObjectFactory() {
23: return factory;
24: }
25: }
|