9from .proxy_interface
import IWorkByProxy
10from .proxy_class_real
import Real_Classes_Container
41 print(
" --> Creating instance of real class...")
62 def DoWork(self, someArgument : str) -> str:
63 print(
" --> proxy class DoWork() in")
65 print(
" --> Forwarding DoWork() call to real class...")
66 return realClass.DoWork(someArgument)
95__all__ = [
"Proxy_Classes_Container"]
The proxy class that implements the IWorkByProxy interface.
_realClassInstance
The one and only instance of the real class associated with this proxy class instance.
IWorkByProxy _GetRealClass(self)
Helper method to retrieve the one and only instance of the real class.
str DoWork(self, str someArgument)
Do some work on a string.
None __init__(self)
Constructor.
A class factory for getting the proxy.
IWorkByProxy CreateProxy()
Retrieve a new instance of the proxy class.
Represents what can be done on the proxy object.