You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Jeroen van der Wal <je...@stromboli.it> on 2012/07/13 21:04:05 UTC

Parameter names

I was adding some methods with lots of paramaters to a repository and got
reminded that I had to annotate all with @Named to have the Isis show the
parameter name. This is an anti-DRY pattern and I googled for some
solutions. I came across Paranamer, a project which solves the problem that
Java reflection does not return parameter names. Did anyone looked into
solutions like this and might it be worth it to implement?

[1] http://paranamer.codehaus.org/

Cheers,

Jeroen

Re: Parameter names

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Jeroen,
I've added a comment to that ticket to describe the process.  A nice Sunday
afternoon coding exercise?  Shouldn't take more than an hour, two at most
I'd've thought.
Cheers
Dan


On 14 July 2012 11:41, Jeroen van der Wal <je...@stromboli.it> wrote:

> I certainly don't say no to a tutorial on FacetFactory. Here's the ticket:
> https://issues.apache.org/jira/browse/ISIS-235
> -Jeroen
>
> On Sat, Jul 14, 2012 at 11:15 AM, Dan Haywood
> <da...@haywood-associates.co.uk>wrote:
>
> > Sounds like a good idea. The license us compatible. Do you want to raise
> a
> > jira?
> >
> > Then, if you want, I'll give you a quick tutorial on how to write a
> > facetfactory to implement the feature?
> >
> > Cheers,
> > Dan
> >
> > Sorry to be brief, sent from my phone
> > On Jul 13, 2012 8:16 PM, "Jeroen van der Wal" <je...@stromboli.it>
> wrote:
> >
> > > I was adding some methods with lots of paramaters to a repository and
> got
> > > reminded that I had to annotate all with @Named to have the Isis show
> the
> > > parameter name. This is an anti-DRY pattern and I googled for some
> > > solutions. I came across Paranamer, a project which solves the problem
> > that
> > > Java reflection does not return parameter names. Did anyone looked into
> > > solutions like this and might it be worth it to implement?
> > >
> > > [1] http://paranamer.codehaus.org/
> > >
> > > Cheers,
> > >
> > > Jeroen
> > >
> >
>

Re: Parameter names

Posted by Jeroen van der Wal <je...@stromboli.it>.
I certainly don't say no to a tutorial on FacetFactory. Here's the ticket:
https://issues.apache.org/jira/browse/ISIS-235
-Jeroen

On Sat, Jul 14, 2012 at 11:15 AM, Dan Haywood
<da...@haywood-associates.co.uk>wrote:

> Sounds like a good idea. The license us compatible. Do you want to raise a
> jira?
>
> Then, if you want, I'll give you a quick tutorial on how to write a
> facetfactory to implement the feature?
>
> Cheers,
> Dan
>
> Sorry to be brief, sent from my phone
> On Jul 13, 2012 8:16 PM, "Jeroen van der Wal" <je...@stromboli.it> wrote:
>
> > I was adding some methods with lots of paramaters to a repository and got
> > reminded that I had to annotate all with @Named to have the Isis show the
> > parameter name. This is an anti-DRY pattern and I googled for some
> > solutions. I came across Paranamer, a project which solves the problem
> that
> > Java reflection does not return parameter names. Did anyone looked into
> > solutions like this and might it be worth it to implement?
> >
> > [1] http://paranamer.codehaus.org/
> >
> > Cheers,
> >
> > Jeroen
> >
>

Re: Parameter names

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Sounds like a good idea. The license us compatible. Do you want to raise a
jira?

Then, if you want, I'll give you a quick tutorial on how to write a
facetfactory to implement the feature?

Cheers,
Dan

Sorry to be brief, sent from my phone
On Jul 13, 2012 8:16 PM, "Jeroen van der Wal" <je...@stromboli.it> wrote:

> I was adding some methods with lots of paramaters to a repository and got
> reminded that I had to annotate all with @Named to have the Isis show the
> parameter name. This is an anti-DRY pattern and I googled for some
> solutions. I came across Paranamer, a project which solves the problem that
> Java reflection does not return parameter names. Did anyone looked into
> solutions like this and might it be worth it to implement?
>
> [1] http://paranamer.codehaus.org/
>
> Cheers,
>
> Jeroen
>