Thanks Jeff!
A couple of followup questions, if I may...
1. So task names were passed as parameters, right?
2. The inner classes actually belong to the domain servlet, yes?
3. Are you using reflection to instantiate/invoke the inner classes, or just
a big case stmt?
Thanks for the explanation,
Christian
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff
> Hanson
> Sent: Monday, September 18, 2000 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Q: Inner classes and servlets
>
>
> Christian,
>
> Specifically, the domain servlet gets the desired task name from the query
> parameters and then instantiates a member inner-class that correlates to
> the task. The inner-classes were scoped as private and since
> inner-classes
> can only exist in the context of the instance of the class they are named
> in, domain tasks are kept private to the domain that they belong to. This
> provided secure encapsulation and allowed for safe inheritance by users
> wishing to extend the domain servlet for site customization.
>
> Jeff
>
> At 03:43 PM 9/18/00 -0600, you wrote:
> >Hi Jeff,
> >
> >Interesting...this is exactly the train of thought I'm exploring
> right now.
> >Can you share any more details? I'm working on building a presentation
> >framework, and would like to use inner classes as "event listeners".
> >
> >I'd love to hear details if you can share them. You can email offline if
> >that's easier ([EMAIL PROTECTED])
> >
> >Thanks!
> >Christian
> >
> > > -----Original Message-----
> > > From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> > > API Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jeff
> > > Hanson
> > > Sent: Monday, September 18, 2000 1:57 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Q: Inner classes and servlets
> > >
> > >
> > > I worked on a team that used inner-classes to encapsulate
> particular tasks
> > > associated with query parameters passed from the client. We were
> > > designing
> > > generic model-view-controller domain frameworks for the Web
> application
> > > environment and this mechanism made it very easy for users
> and maintainers
> > > of the frameworks to understand and modify the code to meet
> their specific
> > > needs. Specifically, each domain-framework controller consisted of a
> > > servlet or set of servlets with the tasks for the domain
> implemented as
> > > inner-classes. Adding new tasks was as simple as adding a new
> inner-class
> > > and associating it with a new query parameter.
> > >
> > > -----Original Message-----
> > > From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> > > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > Christian Cryder
> > > Sent: Monday, September 18, 2000 9:00 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Q: Inner classes and servlets
> > >
> > >
> > > Hi folks,
> > >
> > > I'm wondering if/how people are using inner classes within
> > > Servlets? If you
> > > are, could you let me know some details?
> > >
> > > Thanks,
> > > Christian
> > > ------------------------------------------------
> > > Christian Cryder
> > > Software Engineer, Rocks
> > > Lutris Technologies, Inc.
> > > [EMAIL PROTECTED]
> > > ------------------------------------------------
> > > "What a great time to be a Geek"
> > > ------------------------------------------------
> > > http://www.lutris.com ~ http://xmlc.enhydra.org
> > >
> > > __________________________________________________________________
> > > _________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > > in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html