Questions tagged [proxy-object]

26 questions
1
vote
1 answer

Building REST wrapper over an existing SOAP web service

My team is developing an REST service wrapper over an existing SOAP based web service. We don't exactly know the SOAP service internals, just have access to the WSDL file. Our REST service wrapper will be just one-to-one mapping. I know in real its…
sakura
  • 2,249
  • 2
  • 26
  • 39
0
votes
1 answer

In Nuxt3, how to transform my proxy Object in a regular object?

Imagine I have a page 'PodcastPage', which is a component in Nuxt3 displaying a podcast page. This page simply gets the id in the URL in order to find the matching podcast to display, among all the podcasts I got from my database, which is a Strapi…
Maxxx
  • 13
  • 5
0
votes
2 answers

Spring AOP this() PCD context binder doesn't work with aspect instantiation model perthis()

I'm trying to log which aspect instance is responsible for which proxied object. However, when I'm collecting proxy object context through this() PCD and using perthis() instantiation model I'm getting an error related to the variable name of proxy…
0
votes
1 answer

Monkey patching? Proxy objects? Getting rid of a factory method and recycling a generic object

Basically, I have a generic class with a lot of methods. Before accessing those methods, I have to check its 'type' field, for example: Note: generic_class_t is from a 3rd-party library I cannot control or re-design. I can only wrap but I want to be…
Tom B.
  • 21
  • 3
0
votes
1 answer

Track invocations of methods and functions

I'm looking for the library which allows to track invocation of methods and functions. Think of it as of Mock providing called and call_count properties. Example of end-result needed: s = MagicProxyLib() @s class MyClass: def…
0
votes
0 answers

Lightweight map proxy for class hierarchy

So recently I've been working on a library that is based around a hierarchy of classes as follows: template class Derived1 : public Base; template class Derived2 : public Base; Fundamentally the problem I am trying…
SamM
  • 155
  • 1
  • 6
0
votes
1 answer

Vue3 reactivity and proxy objects behaving apparently random

I am having difficulties with Vue 3 reactivity and proxy objects. I am using Option API and I have a Vue Component that on button click execute following code submitUser() { let userCreated; userCreated = { id:…
Mirai
  • 31
  • 1
  • 4
0
votes
1 answer

Memory leak while retrieving data from a proxy class

I am multi-processing data from a series of files. To achieve the purpose, I built a class to distribute the data. I started 4 processes that will visit the same class and retrieve data. The problem is, if I use the class method (retrieve()) to…
Raymond Kwok
  • 2,461
  • 2
  • 9
  • 11
0
votes
1 answer

Observing object using proxy object

Should I be able to set up an observer on a proxy object, change what the proxy object is pointing to and still be able to observe changes on the real object? An example might explain this best. Consider the following. In the header: @interface…
Hooligancat
  • 3,588
  • 1
  • 37
  • 55
0
votes
1 answer

Defining a proxy-based OutputIterator in terms of boost::iterator_facade

I wrote this C++17 code and expected it to work out of the box. class putc_iterator : public boost::iterator_facade< putc_iterator, void, std::output_iterator_tag > { friend class boost::iterator_core_access; struct proxy { …
Quuxplusone
  • 23,928
  • 8
  • 94
  • 159
0
votes
0 answers

Wrap external python library classes/functions in a new python module

We are using an external python library (e.g. Lib1) which have couple of classes (e.g. Class A, Class B). We want to create a wrapper component on top of that library so that in future if we want to replace that library with some other library, our…
Jaat
  • 1
  • 1
1
2