next up previous contents
Next: Class Request Up: Repository Previous: Repository

Profile Request

For the profile request the repository loads all implementation classes. The set of implementation classes is specified in a configuration file. If a new implementation class is added to the system, the list of implementation classes must be updated. An alternative solution is the bundling of the implementation classes in a special JAR file. It avoids an additional configuration file, but if the set of implementation classes changes, the JAR file must be modified instead of changing a line in a configuration file.

The loaded implementation classes are instantiated on the repository. From the objects of the implementation classes the profiles are retrieved by invoking getProfile(). The array of profiles is serialized to a byte stream and sent to the context awareness.

The instantiation of the implementation class on the repository is necessary in order to get the profiles out of the implementation class. In the prototype implementation all instances of implementation classes are held on the repository. If there are a lot of implementation classes, this implementation may lead to high resource consumption. An alternative would be to instantiate the implementation classes for retrieving the profiles once and to drop instances of implementation classes and to keep only the profiles in memory.


next up previous contents
Next: Class Request Up: Repository Previous: Repository
Copyright Munich Network Management Team