Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6708

Re: Really "BIG" class name wanted

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Really "BIG" class name wanted
Date 2011-07-31 20:32 -0700
Organization A noiseless patient Spider
Message-ID <j156o0$q75$1@dont-email.me> (permalink)
References <37e4697b-5aab-42ef-a1e5-3ce5a6d866a8@e15g2000yqd.googlegroups.com>

Show all headers | View raw


On 7/28/2011 3:20 AM, Ross wrote:
> I'm now building a centralised class for a whole lot of important
> functions in a program I'm writing.

Here's an example of a similar thing:

<http://download.oracle.com/javase/6/docs/api/javax/annotation/processing/ProcessingEnvironment.html>

That's the Processing Environment for the Java compiler annotation 
processor.  Notice it's got some things similar to your idea -- 
getOptions, getTypeUtils, some other stuff like getFiler (the file 
system, i.e., persistence) and some stuff specific to the problem domain 
(ElementUtils, Messager, etc.)

Notice too it's not a "god object" -- it's only got a few objects 
contained with in it.  It doesn't know everything, just the top level 
interfaces.  That's much closer to what I think of as an 
ApplicationContext -- half a dozen to a dozen getters max, and only 
deals with well scoped top level concepts.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Really "BIG" class name wanted Ross <rossclement@gmail.com> - 2011-07-28 03:20 -0700
  Re: Really "BIG" class name wanted Patricia Shanahan <pats@acm.org> - 2011-07-28 03:38 -0700
  Re: Really "BIG" class name wanted Roedy Green <see_website@mindprod.com.invalid> - 2011-07-28 04:01 -0700
  Re: Really "BIG" class name wanted markspace <-@.> - 2011-07-28 06:35 -0700
    Re: Really "BIG" class name wanted Ross <rossclement@gmail.com> - 2011-07-29 05:28 -0700
      Re: Really "BIG" class name wanted markspace <-@.> - 2011-07-29 06:36 -0700
      Re: Really "BIG" class name wanted Robert Klemme <shortcutter@googlemail.com> - 2011-07-29 15:55 +0200
      Re: Really "BIG" class name wanted Tom Anderson <twic@urchin.earth.li> - 2011-07-29 14:56 +0100
      Re: Really "BIG" class name wanted Tom Anderson <twic@urchin.earth.li> - 2011-07-29 15:08 +0100
      Re: Really "BIG" class name wanted Silvio <silvio@moc.com> - 2011-07-29 17:32 +0200
        Re: Really "BIG" class name wanted Silvio <silvio@moc.com> - 2011-08-01 13:47 +0200
      Re: Really "BIG" class name wanted lewbloch <lewbloch@gmail.com> - 2011-07-29 09:25 -0700
      Re: Really "BIG" class name wanted lewbloch <lewbloch@gmail.com> - 2011-07-29 23:08 -0700
        Re: Really "BIG" class name wanted Martin Gregorie <martin@address-in-sig.invalid> - 2011-07-30 11:24 +0000
          Re: Really "BIG" class name wanted Patricia Shanahan <pats@acm.org> - 2011-07-30 06:10 -0700
            Re: Really "BIG" class name wanted Gene Wirchenko <genew@ocis.net> - 2011-08-01 16:22 -0700
      Re: Really "BIG" class name wanted Lew <lewbloch@gmail.com> - 2011-07-31 02:29 -0700
      Re: Really "BIG" class name wanted Lew <lewbloch@gmail.com> - 2011-08-01 14:22 -0700
        Re: "$" in class names reserved [was: Re: Really "BIG" class name wanted] Wayne <nospam@all.invalid> - 2011-08-02 02:33 -0400
    Re: Really "BIG" class name wanted Ross <rossclement@gmail.com> - 2011-07-29 05:37 -0700
      Re: Really "BIG" class name wanted Bent C Dalager <bcd@pvv.ntnu.no> - 2011-07-30 22:42 +0000
        Re: Really "BIG" class name wanted thoolen <thoolen@tholenbot.thorium> - 2011-07-30 23:38 -0400
  Re: Really "BIG" class name wanted markspace <-@.> - 2011-07-31 20:32 -0700
  Re: Really "BIG" class name wanted Silvio <silvio@moc.com> - 2011-08-01 13:54 +0200

csiph-web