Borland(R) Enterprise Server VisiBroker(R) デベロッパーズガイド
class TimingObjectWrapperFactory : public VISObjectWrapper::UntypedObjectWrapperFactory { public: TimingObjectWrapperFactory(VISObjectWrapper:: Location loc, const char* key) : VISObjectWrapper:: UntypedObjectWrapperFactory(loc), _key(key) {} // ObjectWrapperFactory operations VISObjectWrapper::UntypedObjectWrapper_ptr create ( CORBA::Object_ptr target, VISObjectWrapper::Location loc) { if (_owrap == NULL) { _owrap = new TimingObjectWrapper(_key); } return VISObjectWrapper::UntypedObjectWrapper:: _duplicate(_owrap); } private: CORBA::String_var _key; VISObjectWrapper::UntypedObjectWrapper_var _owrap; };
package UtilityObjectWrappers; import com.inprise.vbroker.interceptor.*; public class TimingUntypedObjectWrapperFactory implements UntypedObjectWrapperFactory { public UntypedObjectWrapper create( org.omg.CORBA.Object target, com.inprise.vbroker.interceptor.Location loc) { return new TimingUntypedObjectWrapper(); } }
All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
COPYRIGHT (C) 1992-2004 Borland Software Corporation. All rights reserved.