001 package com.mockrunner.tag; 002 003 import com.mockrunner.mock.web.WebMockObjectFactory; 004 005 /** 006 * Simple base class for implementations of 007 * {@link com.mockrunner.tag.RuntimeAttribute}. 008 */ 009 public abstract class AbstractRuntimeAttribute implements RuntimeAttribute 010 { 011 private WebMockObjectFactory factory; 012 013 public AbstractRuntimeAttribute(WebMockObjectFactory factory) 014 { 015 this.factory = factory; 016 } 017 018 /** 019 * Get the {@link com.mockrunner.mock.web.WebMockObjectFactory} passed 020 * in the constructor. 021 * @return the {@link com.mockrunner.mock.web.WebMockObjectFactory} 022 */ 023 public WebMockObjectFactory getWebMockObjectFactory() 024 { 025 return factory; 026 } 027 }