The Artima Developer Community
Sponsored Link

Java Buzz Forum
Inverting Brian's Mind

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Inverting Brian's Mind Posted: Dec 3, 2004 10:55 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Inverting Brian's Mind
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
In Inverting the Inversion of Control he discusses an interesting melding of AOP. He mentions a mechanism where you tweak bytecode so doing a new() doesn't just create a new type. I have seen this before, especially in the AOP world where some people use this to make new a factory. It also opens up the power that you get in more dynamic languages. When you do a new it may do some logic and return a subclass of the actual class you asked for etc. The worry that I have had in Java is when people make new act like a singleton. That is scary as when you say new you really think that it will mean new memory on the heap etc etc. However, back to Brian. How cool would this be: update methods set method_body='return new Integer(42);' where package = 'org.example.foo' and name = 'getDayOfWeek'; i love adding fuel to fires :) :) :)

Read: Inverting Brian's Mind

Topic: Electoral Analysis from Berkeley Previous Topic   Next Topic Topic: Desktop Java Live: Look & Feel Input ... Now Is Your Chance

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use