1*1c4c525fSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1c4c525fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1c4c525fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1c4c525fSAndrew Rist * distributed with this work for additional information 6*1c4c525fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1c4c525fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1c4c525fSAndrew Rist * "License"); you may not use this file except in compliance 9*1c4c525fSAndrew Rist * with the License. You may obtain a copy of the License at 10*1c4c525fSAndrew Rist * 11*1c4c525fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1c4c525fSAndrew Rist * 13*1c4c525fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1c4c525fSAndrew Rist * software distributed under the License is distributed on an 15*1c4c525fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1c4c525fSAndrew Rist * KIND, either express or implied. See the License for the 17*1c4c525fSAndrew Rist * specific language governing permissions and limitations 18*1c4c525fSAndrew Rist * under the License. 19*1c4c525fSAndrew Rist * 20*1c4c525fSAndrew Rist *************************************************************/ 21*1c4c525fSAndrew Rist 22*1c4c525fSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir #ifndef __JVM_HXX 26cdf0e10cSrcweir #define __JVM_HXX 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include <vector> 30cdf0e10cSrcweir #include <rtl/ustring.hxx> 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include "jni.h" 33cdf0e10cSrcweir 34cdf0e10cSrcweir 35cdf0e10cSrcweir extern "C" { 36cdf0e10cSrcweir typedef jint JNICALL JNI_InitArgs_Type(void *); 37cdf0e10cSrcweir typedef jint JNICALL JNI_CreateVM_Type(JavaVM **, JNIEnv **, void *); 38cdf0e10cSrcweir 39cdf0e10cSrcweir } 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace stoc_javavm { 42cdf0e10cSrcweir 43cdf0e10cSrcweir class JVM { 44cdf0e10cSrcweir ::std::vector<rtl::OUString> _props; 45cdf0e10cSrcweir 46cdf0e10cSrcweir public: 47cdf0e10cSrcweir JVM() throw(); 48cdf0e10cSrcweir 49cdf0e10cSrcweir void pushProp(const ::rtl::OUString & uString); 50cdf0e10cSrcweir const ::std::vector< ::rtl::OUString> & getProperties() const; 51cdf0e10cSrcweir }; 52cdf0e10cSrcweir } 53cdf0e10cSrcweir 54cdf0e10cSrcweir #endif 55