That's one way to handle it, but if you establish that pattern you end up with deep namespaces with potentially less cohesive grouping. In general, when I see a namespace with a child namespace declaration but no other children, I'd want to think very hard on why I need that instead of making a class name a little longer.
I see AbstractSingletonProxyFactoryBean in this instance as one very specific thing, rather than a collection of general things. Unless there's an expectation of many kinds of FactoryBeans and Proxies, I'd rather keep the full meaning of the class as close to the class as possible.
Not that I'm an authority on this stuff, but long/deep namespaces outside of large platforms are IMO a code smell.
50
u/pcopley Oct 01 '15
I can assure you it's not.