You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Kiruta Vitaly <ki...@tut.by> on 2005/03/31 15:34:29 UTC
commons attribures: Inheritable
Hi all,
I've got a question about the usage of
org.apache.commons.attributes.Inheritable.
I specify an attribute for the method in interface and
I want that attribute to apply to the method in the implementing
class.
For example:
interface ISome {
/** @@Permission("WRITE") */
void someMethod();
}
class CSome {
public void someMethod() {
...
}
}
Now when I call Attributes.getAttribute() for CSome.someMethod I
expect it to return permission attribute specified in ISome. Is it
achievable with org.apache.commons.attributes.Inheritable ?
I made my Permission class (which represents attribute) to extend
Inheritable but it didn't work.
Any help would be appreciated.
Vitali.
---
Удиви друга! Признайся в любви подруге! Поздравь Boss'а с уходом на пенсию!
Сделай это на главном экране столицы на Октябрьской площади!
http://news.tut.by/50282.html
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org