Layer

The Layer abstraction protects the Composite access in a directional way, from a higher to lower layers. Only Composites that exist in the same Layer and in Layers below.
ApplicationInstance application = ...
Iterable<LayerInstance> layerInstances = application.getLayerInstances();

for( LayerInstance layerInstance : layerInstances )
{
    // Navigate to the LayerResolution
    LayerContext layerContext = layerInstance.getLayerContext();
    LayerBinding layerBinding = layerContext.getLayerBinding();
    LayerResolution layerResolution = layerBinding.getLayerResolution();
    
    // Find which layers below.
    List<LayerResolution> below = layerResolution.getUses();

}


Qi4j and the Qi4j logo are trademarks of Richard Öberg, Niclas Hedhman and the members of the Qi4j Core Team. See Qi4j licensing for more information.
Powered by SiteVisionexternal link.