skip to main content
Tutorials and samples > Starting the samples > Common features of Faces samples > What objects does the AbstractSampleContext provide
 
What objects does the AbstractSampleContext provide
In its original form, the AbstractSampleContext provides the IlpContext used in the sample.
In addition, given that most samples are associated with a graphic component (IlpNetwork or IlpEquipment), AbstractSampleContext also hosts a generic IlpGraphicComponent instance. This generic instance can be exposed at the implementation level through a more narrow accessor, like public IlpNetwork getNework() or public IlpEquipment getEquipment().
AbstractSampleContext can provide any object that is of interest. You can create additional bean properties at the implementation level. For example, in the network faces samples, an additional property, network, is created to expose the IlpNetwork.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.