P
P
Pasha Andreev2013-12-25 07:46:52
Java
Pasha Andreev, 2013-12-25 07:46:52

What is the way to mimic php(__get, __set, __call, __invoke) magic methods in java?

What is the way to mimic php(__get, __set, __call, __invoke) magic methods in java?
Many features in the yii framework are implemented using php magic methods. I wonder if there is something similar in java web framework.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2013-12-25
@Argentum88

I'm not strong in Java, but I remember the Proxy.
docs.oracle.com/javase/6/docs/api/java/lang/reflect...

S
Sergey, 2013-12-25
Protko @Fesor

magic is evil.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question