Thread: [Bamboo.Prevalence-dev] Transparent SubSystem Strikes Back
Brought to you by:
rodrigobamboo
From: <hen...@gm...> - 2005-01-07 18:39:20
|
Hi, I've commited the source files with the implementation of SubSystemAttribute. A SubSystem has the same behavior of a transparent engine(except the activation). The followinf snip is the Transparent SubSystem class used in the UnitTests= : <snip> [Serializable] =09[TransparentPrevalence] =09public class TransparentSubAddingSystem : TransparentAddingSystem, ISubAddingSystem =09{ =09=09IAddingSystem _addingSystem; =09=09IAddingSystem _anotherAddingSystem; =09=09public TransparentSubAddingSystem() =09=09{ =09=09=09_addingSystem =3D new TransparentAddingSystem(); =09=09=09_anotherAddingSystem =3D new TransparentAddingSystem(); =09=09} =09=09[SubSystem("_addingSystem")] =09=09public IAddingSystem AddingSystem =09=09{ =09=09=09get =09=09=09{ =09=09=09=09return _addingSystem; =09=09=09} =09=09} =09=09[Query, SubSystem("_anotherAddingSystem")] =09=09public IAddingSystem GetAnotherAddingSystem() =09=09{ =09=09=09return _anotherAddingSystem; =09=09} </snip> --=20 Cheers, Henry Concei=E7=E3o |
From: Rodrigo B. de O. <rod...@gm...> - 2005-01-07 19:15:13
|
Niiice. What if a returned subsystem includes more subsystems, do they get wrapped as well? On Fri, 7 Jan 2005 16:39:13 -0200, Henry Concei=E7=E3o <hen...@gm...> wrote: > Hi, >=20 > I've commited the source files with the implementation of > SubSystemAttribute. A SubSystem has the same behavior of a transparent > engine(except the activation). >=20 > The followinf snip is the Transparent SubSystem class used in the UnitTes= ts: >=20 > <snip> >=20 > [Serializable] > [TransparentPrevalence] > public class TransparentSubAddingSystem : TransparentAddingSystem= , > ISubAddingSystem > { > IAddingSystem _addingSystem; > IAddingSystem _anotherAddingSystem; >=20 > public TransparentSubAddingSystem() > { > _addingSystem =3D new TransparentAddingSystem(); > _anotherAddingSystem =3D new TransparentAddingSys= tem(); > } >=20 > [SubSystem("_addingSystem")] > public IAddingSystem AddingSystem > { > get > { > return _addingSystem; > } > } >=20 > [Query, SubSystem("_anotherAddingSystem")] > public IAddingSystem GetAnotherAddingSystem() > { > return _anotherAddingSystem; > } >=20 > </snip> >=20 > -- > Cheers, > Henry Concei=E7=E3o >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > bbooprevalence-development mailing list > bbo...@li... > https://lists.sourceforge.net/lists/listinfo/bbooprevalence-development >=20 --=20 bamboo http://blogs.codehaus.org/people/bamboo/ http://www.digitalcraftsmen.com.br/ |
From: <hen...@gm...> - 2005-01-07 19:19:41
|
Not yet, but isn't difficult to do that. On Fri, 7 Jan 2005 17:15:05 -0200, Rodrigo B. de Oliveira <rod...@gm...> wrote: > Niiice. >=20 > What if a returned subsystem includes more subsystems, do they get > wrapped as well? >=20 > On Fri, 7 Jan 2005 16:39:13 -0200, Henry Concei=E7=E3o > <hen...@gm...> wrote: > > Hi, > > > > I've commited the source files with the implementation of > > SubSystemAttribute. A SubSystem has the same behavior of a transparent > > engine(except the activation). > > > > The followinf snip is the Transparent SubSystem class used in the UnitT= ests: > > > > <snip> > > > > [Serializable] > > [TransparentPrevalence] > > public class TransparentSubAddingSystem : TransparentAddingSyst= em, > > ISubAddingSystem > > { > > IAddingSystem _addingSystem; > > IAddingSystem _anotherAddingSystem; > > > > public TransparentSubAddingSystem() > > { > > _addingSystem =3D new TransparentAddingSystem()= ; > > _anotherAddingSystem =3D new TransparentAddingS= ystem(); > > } > > > > [SubSystem("_addingSystem")] > > public IAddingSystem AddingSystem > > { > > get > > { > > return _addingSystem; > > } > > } > > > > [Query, SubSystem("_anotherAddingSystem")] > > public IAddingSystem GetAnotherAddingSystem() > > { > > return _anotherAddingSystem; > > } > > > > </snip> > > > > -- > > Cheers, > > Henry Concei=E7=E3o > >=20 > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > bbooprevalence-development mailing list > > bbo...@li... > > https://lists.sourceforge.net/lists/listinfo/bbooprevalence-development > > >=20 > -- > bamboo > http://blogs.codehaus.org/people/bamboo/ > http://www.digitalcraftsmen.com.br/ >=20 --=20 Cheers, Henry Concei=E7=E3o |