Board index » delphi » Re: Where do concrete Attributes Belong-should have included this information before hand.
Cedric Pemberton
![]() Delphi Developer |
Re: Where do concrete Attributes Belong-should have included this information before hand.2003-10-23 10:04:01 AM delphi208 Hi Joanna, Interesting, I never thought of registering the attributes. The Classes yes, but did not like the idea of the user having to register every class descended from for the business logic. What I have done thus far is that each class descended from a TRefelected Class can expose a list parent Classes and their attributes. There is a TAtribute from which all attributes are descended. Business Classes will descend from an abstract ProblemDomainObject Class, which in turn descends from the TReflected. I have four units so far. TReflected and all its support Classes, including TAttribute are in the Reflection.PAS unit. TPersistable is in the abstractPersistanceLayerClasses.PAS have not determined what additional classes will be in that unit yet. The AbstractBusinessLayerClasses unit contains TProblemDomainObject and other support classes not yet determined. There is one additional unit with contains the interfaces for the Classes in the other units. So now I am wondering where the Concrete Attribute classes should go. in the Same unit as TReflected or in the same unit as the The abstract Business Layer behaviour? Or do you think that a completely different Unit is necessary? Joanna Carter writes: QuoteCedric Pemberton writes: |