- All Known Implementing Classes:
PropertyRuntime,PropertyRuntimeModel,RuntimeModel
public interface RuntimeModel
This
RuntimeModel is used by the XL run-time system
as an interface to the access of properties.
It corresponds to a compile-time model which was used at
compile-time: The invocation of
CompiletimeModel.getRuntimeName() returns a name,
which is passed to RuntimeModelFactory.modelForName(java.lang.String, java.lang.ClassLoader) in order to
obtain the corresponding RuntimeModel.
A comprehensive specification of the behaviour of RuntimeModel
is given by the specification of the XL programming language.
- Author:
- Ole Kniemeyer
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(String params) Initializes this model.propertyForName(String name, TypeLoader loader) Returns the run-timePropertyfor a givenname.propertyForName(String name, ClassLoader loader)
-
Method Details
-
initialize
Initializes this model. This method is invoked byRuntimeModelFactory.modelForName(java.lang.String, java.lang.ClassLoader)after a newModelinstance has been created. The format ofparamsdepends on implementations ofModel.- Parameters:
params- initialization parameters, possiblynull
-
propertyForName
Returns the run-timePropertyfor a givenname. Thenamehas to be a name which was returned by an invocation ofCompiletimeModel.Property.getRuntimeName()for a compile-time property at compile-time. The implementation has to return the corresponding run-time property. If classes have to be loaded, theloaderhas to be used.- Parameters:
name- the name of the property, as returned by the compile-time propertyloader- a loader for loading of classes- Returns:
- the run-time property corresponding to
name
-
propertyForName
-