There's a typo in the code snippet, should be:
String className = interfacesPackage.getName() + ".impl." +
intf.getSimpleName() + "Impl";
We need just package name, not its toString() presentation which is
"package com.x.y.z"
On Thu, Aug 16, 2012 at 11:34 AM, Dmitry Gusev wrote:
> Thanks for sh
I might.. yes. I don't necessarily need a lot of content, but a paragraph
and a few code snippets for each service would be a fantastic jump-off
point.
One side effect of all Tapestry's injection, reflection-based config and
event binding, and literate APIs, is that the explorability suffers a bi
I remember tapestry that by searching for implementation classes in the
same package by the same name but suffixed by "Impl". Like "MySvc" as in
interface and "MySvcImpl" as the implementation.
1. When I wan'ted to extract that piece of info from the docs I couldn't
find it ! Is it deprecated ?!
2
On Thu, 16 Aug 2012 03:48:17 -0300, Dmitry Gusev
wrote:
Hi,
Hi!
correct me if I wrong, but you can't get instance of ClassNameLocator in
module's bind method, right? Since the registry is not started yet.
Nope, but maybe Tapestry-IoC could provide it anyway. JIRA please?
--
Thiago H. d
Thanks for sharing, Norman!
Here's mine implementation:
public static void bind(ServiceBinder binder) throwsClassNotFoundException
{
autobindServices(binder, ProjectDAO.class.getPackage());
autobindServices(binder, ProjectManager.class.getPackage());
...
Hi,
correct me if I wrong, but you can't get instance of ClassNameLocator in
module's bind method, right?
Since the registry is not started yet.
On Thu, Aug 16, 2012 at 2:43 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Wed, 15 Aug 2012 19:33:24 -0300, Norman Franke
> wrote
On Wed, 15 Aug 2012 19:47:50 -0300, Michael Prescott
wrote:
That's very nifty, Norman. This is a simultaneously inspiring and
depressing reminder that despite having used Tapestry since version 3, I
still feel like a total noob. :-) I'd love to see a blog series on
"Services you never knew
It was an internal class when I first started, and I generally won't use
classes in internal packages. I see it's been moved, so that may very well be a
better idea.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Aug 15, 2012, at 6:43 PM, Thiago H de Paula Figueiredo wro
That's very nifty, Norman. This is a simultaneously inspiring and
depressing reminder that despite having used Tapestry since version 3, I
still feel like a total noob. :-) I'd love to see a blog series on
"Services you never knew about and fun things to do with them!"
Michael
On 15 August 2012
On Wed, 15 Aug 2012 19:33:24 -0300, Norman Franke wrote:
Helper method borrowed from who-knows-where:
public static List> getClassesForPackage(String
packageName) throws ClassNotFoundException {
Have you taken a look at Tapestry's ClassNameLocator and
ClassNameLocatorImpl? When I nee
Something similar was asked in another thread, but I figured others may find
this helpful.
I wanted to automatically bind my interfaces and implementations of my numerous
DAOs in my AppModule. It's pretty easy, so here is what I idd. This is called
from the bind static method. Obviously you'd n
11 matches
Mail list logo