001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2010-2011 Pentaho 008// All Rights Reserved. 009*/ 010package mondrian.server; 011 012/** 013 * Implementation of {@link mondrian.server.RepositoryContentFinder} that always 014 * returns a constant string. 015 * 016 * @author Julian Hyde 017 */ 018public class StringRepositoryContentFinder 019 implements RepositoryContentFinder 020{ 021 private final String content; 022 023 public StringRepositoryContentFinder(String content) { 024 this.content = content; 025 } 026 027 public String getContent() { 028 return content; 029 } 030 031 public void shutdown() { 032 // nothing to do 033 } 034} 035 036// End StringRepositoryContentFinder.java