Re: Just once more, an EOF/ObjC replacement?
Re: Just once more, an EOF/ObjC replacement?
- Subject: Re: Just once more, an EOF/ObjC replacement?
- From: DevReseune <email@hidden>
- Date: Tue, 24 Aug 2004 07:56:30 +0200
With ASpect and bytecode manipulation, you can replace at runtime every
read/write access to a class attribute, or every calls to a method. For
example:
public class MyClass {
protected String _myValue;
protected void aMethod() {
_myValue = "Hellor world";
}
}
Now, you can create an aspect to log every access to aMethod, and to
make this class persistent by adding an attribute _isDirty and to set
it to true everytime that _myValue is updated. Two aspects that you can
add to your program separatly, but that you can reuse to another
program! For real examples, see those sites:
- http://www.jboss.org/wiki/Wiki.jsp?page=ReadWriteLockAspect
- http://www.jboss.org/wiki/Wiki.jsp?page=TransactionalLocking
- http://www.jboss.org/wiki/Wiki.jsp?page=AOPRemoting
- http://www.jboss.org/wiki/Wiki.jsp?page=JBossAOP
- http://www.hibernate.org/
-
http://www.hibernate.org/hib_docs/reference/en/html/
quickstart.html#quickstart-persistentclass
- http://www.eclipse.org/aspectj/
- http://www-106.ibm.com/developerworks/library/j-ceaop/
-
http://www.theserverside.com/articles/article.tss?
l=AspectOrientedRefactoringPart1
- http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-aspect2_p.html
I don't know how to add those features in Objective-C. How can you do?
FrC)dC)ric
Le 24 aoC;t 04, C 00:53, Ondra Cada a C)crit :
On 24.8.2004, at 0:09, DevReseune wrote:
Mmmmb& Can you explain your opinion please?
Well, what needs an explanation?
(i) Aspects are *by far* inferior to the power of ObjC/Cocoa.
If you don't think so, first implement HOM (including proper futures)
in Java with aspects -- since it is easy with ObjC/Cocoa; if you do,
I'll humbly admit I was wrong in saying (i).
---
Ondra Dada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.