Never mind; That was of course easier than I thought;

clazz.getMethod( m.getName(), m.getParameterTypes() );


Rickard, I think this is more or less resolved.


Cheers

On Sat, Oct 31, 2009 at 5:14 PM, Niclas Hedhman <[email protected]> wrote:
> On Sat, Oct 31, 2009 at 5:12 PM, Niclas Hedhman <[email protected]> wrote:
>
>> Got any tips on how to go about it in a safe manner?
>
> Let me rephrase;
>
> If I have
>
>    public interface Some
>    {
>        Collection<String> doSome();
>    }
>
>    public static class SomeMixin
>        implements Some
>    {
>        public Collection<String> doSome()
>        {
>            return new ArrayList<String>();
>        }
>    }
>
> Having the Some.method() and the SomeMixin.class, how do I find the
> SomeMixin.doSome() class in a "safe manner", i.e. not my own algorithm
> for method matching?
>
>
> Cheers
> --
> Niclas Hedhman, Software Developer
> http://www.qi4j.org - New Energy for Java
>
> I  live here; http://tinyurl.com/2qq9er
> I  work here; http://tinyurl.com/2ymelc
> I relax here; http://tinyurl.com/2cgsug
>



-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to