proxy-pattern
Virtual functions in Proxy pattern in C++
If I have a proxy pattern Class A and proxy for that is Class PrxA. Question1 If I define few functions as virtual in A are those supposed to be defined as virtual even in PrxA?[详细]
2023-03-29 13:35 分类:问答What is the name of this pattern? (answer: Remote Proxy)
Consider a class OriginalClass that might or might not be available on runtime. OriginalClass has a method doSomething which should be executed if its class is available.[详细]
2023-03-14 00:58 分类:问答Design for customizable string filter
Suppose I\'ve tons of filenames in my_dir/my_subdir, formatted in a some way: data11_7TeV.00179691.physics_Egamma.merge.NTUP_PHOTON.f360_m796_p541_tid319627_00[详细]
2023-03-06 02:18 分类:问答Why is the proxy pattern so slow?
At least in java, the proxy pa开发者_如何学运维ttern has a lot of overhead - I don\'t remember the exact figures, but when wrapping tiny methods the proxy takes something like 50 times as long as the[详细]
2023-03-04 07:32 分类:问答Preprocessor with proxy design pattern
In the proxy section the Design Patter from the Gang of Four says: Overloading the member access operator isn\'t a good solution for every kind of proxy. Some proxies[详细]
2023-03-03 12:02 分类:问答JAVA EE proxy pattern
I keep reading everywhere that when you ask for dependencies to be injected in a bean, you are injected a proxy to an instance of that resource. I believe I know what a proxy is, its an instance that[详细]
2023-02-14 11:52 分类:问答Instantiate object defined as property in a PHP class as needed (lazy loading)
For the sake of simplicity, assume I have 2 classes, User and UserStatus, used in a Web application. <?php[详细]
2023-02-09 07:41 分类:问答Ruby: Proxy pattern, reducing method calls
How do I proxy the ruby logger and keep performance? So, we have an requirement at work, quite reasonable.When a program is sent the signal HUP[详细]
2023-01-28 10:52 分类:问答What is new() function here?
I\'ve been learning design patterns and I saw such a method call from a class : class Client: SubjectAccessor {[详细]
2023-01-27 19:01 分类:问答How do I dynamically implement the Proxy Pattern?
I\'m revisiting my class tracking (dirty logic), which I wrote last year. Currently I have an uber base class that deals with all the state tracking, but each property whos values I need to track need[详细]
2023-01-16 03:59 分类:问答