Re: commons attribures: Inheritable

2005-04-02 Thread Kiruta Vitaly
Hi,
I found my mistake. I should have been doing:
/** @@Inheritable() */
class Permission {
...
}
instead of:
class Permission extends Inheritable {
...
}
:)
Cheers.
---
 !!  Boss'!
!
http://news.tut.by/50282.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


commons attribures: Inheritable

2005-03-31 Thread Kiruta Vitaly
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]