next up previous contents
Next: Loader Up: Adaptation Previous: Adaptation

ContextAwareness

The class ContextAwareness loads the profiles of all implementation classes of the specified functionality interface. The request is sent to the repository client and the context awareness obtains an array of profiles from the repository client.

The functionality of the context awareness is contained in the profiles. The ContextAwareness class invokes the matching function of each profile. The implementation class with the unique profile, that executes the matching function successfully is determined as the right implementation class for the current environment. The profile checker programm (described in detail below) supports the application programmer to verify that the implementation profiles are unique. If the context awareness detects at runtime that two profiles match the same environment, an exception is thrown. This internal adaptation exception is mapped to a class not found exception which is reported to the core.

The name of the implementation class can be retrieved from its profile and is returned to the adaptation.



Copyright Munich Network Management Team