Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394184/ref=jranch-20" target="_blank" rel="nofollow">Java Reflection in Action</a>
Originally posted by Nate Forman:
To do AOP-style programming, you can use reflection to examine an existing class and then generate another class that has additional capability. We call this class-to-class transformation.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394184/ref=jranch-20" target="_blank" rel="nofollow">Java Reflection in Action</a>
Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394184/ref=jranch-20" target="_blank" rel="nofollow">Java Reflection in Action</a>
Originally posted by Nate Forman:
When you say "custom metadata model," do you refer to MDA (Model Driven Architectures)? I haven't had a chance to do a lot of looking, but people have suggested that there seems to be potential synergy between that and reflection. Care to comment?
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Ira Forman<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394184/ref=jranch-20" target="_blank" rel="nofollow">Java Reflection in Action</a>
Originally posted by Ira Forman:
Let me follow-up on class-to-class transformations. There are many difference kinds of program transformations (for example, common expression elimination is one). However, I am especially interested in transformations that take a whole class and return a new class that has new property; this is a class-to-class transformation. Achieving class-to-class transformation is the way to modularize the properties that OO programers talk about (for example, persistent, atomic, and so on). This is one of the goals of AOP. This modularization may be achieved in many ways: with a new language (AspectJ), with bytecode manipulation (JBOSS does this), with metaclasses ("Putting Metaclasses to Work"), or through program generation (Chapters 7 and 8 of "Java Reflection in Action").
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by Ali Pope:
What part of JBoss are you referring to?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Ali Pope:
Weird. Why should the ejb container do bytecode manipulation? Afaik they are using some interceptors that are proxy-based solution.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Always look on the bright side of life. At least this ad is really tiny:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|