attributes problem
Steve Conover <[email protected]> Thu, 13 Feb 2003 09:55:05 -0800 (PST)
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Message-ID | <[email protected]> |
I have the following class:
public interface Alias
{
public String getAlias();
/**
* @persistent true
*/
public void setAlias( String alias );
}
Then I run:
System.out.println( Attributes.hasAttribute( Alias.class.getMethod(
"setAlias", new Class[] {String.class} ), "persistent" ) );
System.out.println( Attributes.getAttribute( Alias.class.getMethod(
"setAlias", new Class[] {String.class} ), "persistent" ) );
which results in
false
null
Any ideas about what I'm doing wrong? I think I'm doing the same thing
as what's in the Job example, which apparently works.
Thanks,
Steve
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en