When we aggregate an inner component, is it possible to expose only a subset of the interfaces of that component? For example consider the following scenario.
Inner component exposes interfaces I1 and I2. But the outer comnponent wants to expose [b]only[/b] I1 (in addition to its own interfaces). But once I query for I1 and obtain it pointer I can always obtain pointer to I2 by querying through I1 pointer. This is because aggregation exposes the inner interfaces [b][italic]directly[/italic][/b]. But what we desire is that if we query for I2 it should fail, as the outer component should not expose I2.
Can someone explain?