commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiruta Vitaly <kir...@tut.by>
Subject commons attribures: Inheritable
Date Thu, 31 Mar 2005 13:34:29 GMT
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


Mime
View raw message