Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] around advice on constructors

Lesiecki Nicholas wrote:
> I suppose you've also thought of using declare error to enforce the strict
> use of factory methods? It won't be as neat, but it would make the use of
> factories airtight...
>
> Cheers,
>
> NCik
>

Yeah, well.. haven't actually done it yet, but I am intending to.
Everything works alright with the factories, it's just that a design goal is 
to minimise the impositions upon those writing implementations of the 
interface, and in particular they shouldn't really need to know of the 
existence of the 'aspectified' code.  
Just would have been nice if I could remove the necessity for them to 
implement factories with well-known methods.

Cheerio
Dan



Back to the top