I do not know how the testannotation in
http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java
work.
Can you explain?

I get error in hosted mode when i try to run...
public class Application implements EntryPoint {

  public void testReflection(){
          ClassType classType2 =
TypeOracle.Instance.getClassType(TestReflection.class);
            //Class Annotations
        
          
System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
......

On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> No, any annotations
>
> On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> Is it it only support your annotation ? ->com.gwtent.client.test.annotations.
>>
>> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > You can have a look the Wiki page 
>> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
>> > need include GWT-ENT module into your project.
>> > then include "Reflection" flag interface into your class
>> > ClassType classType = TypeOracle.Instance.getClassType
>> > (YourClass.class);
>>
>> > done :)
>>
>> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> Do you want to configure anything in order to make class the following
>> >> code work?
>> >> Test.class.getAnnotation(Id.class);
>>
>> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > Sorry, what do you mean? My English is not so good, but If you got any
>> >> > question, please welcome to ask me :D
>> >> > James
>>
>> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
>> >> >> understandable by GWT?
>>
>> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Hi, zujee,
>>
>> >> >> >  I have a reflection implement for GWT client code, and it support
>> >> >> > get Annotation's value at runtime.
>>
>> >> >> >  http://code.google.com/p/gwt-ent/
>> >> >> >  The test case:
>> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >> >> >  Hope that helps :)
>> >> >> > James
>>
>> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> >> >> Hi experts,
>> >> >> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> >> >> and inside that
>> >> >> >> @Resource("com/MyPath/MyConstants.properties")
>> >> >> >>     public abstract TextResource properties();
>>
>> >> >> >> and its working fine.
>> >> >> >> but I need to change the filename after reading the XML file .
>> >> >> >> eg:
>> >> >> >> <MySettings>
>> >> >> >> <PROPERTYFILE TYPE="STRING">MyConstants_C1.properties</PROPERTYFILE>
>> >> >> >> </MySettings>
>>
>> >> >> >> from that I need to set the reosuece path as
>> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> >> >> >> that possible?
>>
>> >> >> >> thanks and regards
>> >> >> >> Zujee
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to