Extensions have access to most of the Core Runtime internals through well defined APIs, which also reside in the Core SPI available to extensions.
All the Model, Resolution and Binding of the entire Structure, i.e. Application, Layer, Module, Composite, Fragment, are available through the API. Also the Query, Indexing and Persistence SPIs are under the Extension SPI umbrella.