On Mon, 20 Aug 2012 14:37:49 -0300, George Christman <gchrist...@cardaddy.com> wrote:

Okay Few more minor questions on this and I think I'll be good to go.

1. If I declared ImportTask as a service, could I use it as a list as well?

Example

@Inject
private List<ImportTask> importTask;

No. You can, however, have something like an ImportTaskSource service that returns the import tasks available.

2. When using services, should the service always be used with an
interface?

No. Defining a service as an interface has its advantages,

In the case above, it's being shown with a Hibernate entity
class.

If ImportTask is a Hibernate entity, it definitely should not be a service.

3. lastly when I populate my Service Obj, is that data available to me in
another service,

Your service can provide getters and setters so other services can access this data.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to