KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > storagemanager > DummyApplicationContext


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.storagemanager;
13
14 import com.versant.core.common.OID;
15 import com.versant.core.metadata.FetchGroup;
16
17 /**
18  * ApplicationContext that wants all data.
19  */

20 public class DummyApplicationContext implements ApplicationContext {
21
22     public static final DummyApplicationContext INSTANCE =
23             new DummyApplicationContext();
24
25     public boolean isStateRequired(OID oid, FetchGroup fetchGroup) {
26         return true;
27     }
28
29 }
30
31
Popular Tags