1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package com.sun.star.lib.uno.environments.remote; 25 26 import com.sun.star.uno.IEnvironment; 27 import com.sun.star.uno.Type; 28 29 public final class remote_environment implements IEnvironment { remote_environment(Object context)30 public remote_environment(Object context) { 31 this.context = context; 32 } 33 getContext()34 public Object getContext() { 35 return context; 36 } 37 getName()38 public String getName() { 39 return "remote"; 40 } 41 registerInterface(Object object, String[] oid, Type type)42 public Object registerInterface(Object object, String[] oid, Type type) { 43 throw new UnsupportedOperationException( 44 "java_remote environment is not functional"); 45 } 46 revokeInterface(String oid, Type type)47 public void revokeInterface(String oid, Type type) { 48 throw new UnsupportedOperationException( 49 "java_remote environment is not functional"); 50 } 51 getRegisteredInterface(String oid, Type type)52 public Object getRegisteredInterface(String oid, Type type) { 53 throw new UnsupportedOperationException( 54 "java_remote environment is not functional"); 55 } 56 getRegisteredObjectIdentifier(Object object)57 public String getRegisteredObjectIdentifier(Object object) { 58 throw new UnsupportedOperationException( 59 "java_remote environment is not functional"); 60 } 61 list()62 public void list() { 63 throw new UnsupportedOperationException( 64 "java_remote environment is not functional"); 65 } 66 67 private final Object context; 68 } 69