Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 133715
BY: xiao li (expxiaoli)
DATE: 2012-12-24 04:01
SUBJECT: RE: How to deal with templete parameter?

 

Thanks for your advice. I use the following code to get parameter type:
public synchronized <T extends BasicDAO> T getDAO(Class<T> daoC) {System.out.println(daoC.getClass().getName())}

The result is: "java.lang.Class". So the code in ruby is:
dao = metaFactory._invoke('getDAO','Ljava.lang.Class', ModelDao)
It can work.


Thread View

Thread Author Date
How to deal with templete parameter?xiao li2012-12-21 06:33
      RE: How to deal with templete parameter?arton Tajima2012-12-21 13:33
            RE: How to deal with templete parameter?arton Tajima2012-12-21 13:38
                  RE: How to deal with templete parameter?xiao li2012-12-24 04:01

Post a followup to this message