1 /*******************************************************************************
2 * Copyright (c) 2013 Association for Decentralized Information Management
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.db.management;
15 * @author Kalle Kondelin
17 public class SingleSessionContextProviderSource implements ISessionContextProviderSource {
19 ISessionContextProvider provider;
21 public SingleSessionContextProviderSource(ISessionContextProvider provider) {
22 this.provider = provider;
26 public ISessionContextProvider remove(Object context) {
27 throw new java.lang.UnsupportedOperationException();
31 public void put(Object context, ISessionContextProvider provider) {
32 throw new java.lang.UnsupportedOperationException();
36 public ISessionContextProvider[] getAll() {
37 return new ISessionContextProvider[] { provider };
41 public ISessionContextProvider getActive() {
46 public ISessionContextProvider get(Object context) {