com.bowstreet.profiles
Interface ProfileUpdateValue


public interface ProfileUpdateValue

Interface to allow for user(developer) defined dynamic Profile value modifications. Users that wish to override values within a selected Profile can specify a class name in Profile Set, which must implement this interface. When a class is specified the Model regeneration process will dynamically load the specified class and then call its updateProfileValues method. The updateProfileValues method will then have the opportunity to update the profile values within the specified Profile.

See Also:
Profile

Method Summary
 void updateProfileValues(javax.servlet.http.HttpServletRequest request, Profile profile, java.lang.String modelName, java.lang.String explicitProfile, ModelInstanceCreator modelInstanceCreator)
          This method can be used to update any of the values within specified Profile.
 

Method Detail

updateProfileValues

void updateProfileValues(javax.servlet.http.HttpServletRequest request,
                         Profile profile,
                         java.lang.String modelName,
                         java.lang.String explicitProfile,
                         ModelInstanceCreator modelInstanceCreator)
This method can be used to update any of the values within specified Profile. These values are only used to generate a new WebApp instance and are not save to the ProfileSet storage.

Parameters:
request - The HttpServletRequest for the current request. This can be used to get additional information about the requestor. Implementers of this method should test this for null, for cases where generation is done outside the context of the server.
profile - The Profile, which to update the values in.
modelName - The name of the Model that is being generated.
explicitProfile - The name of an explicitly selected profile, or null if there was not one specified.
modelInstanceCreator - This can be use to instantiate a WebApp Model, which can then be invoked. Implementers of this method should test this for null, for cases where generation is done outside the context of the server.
See Also:
Profile, ModelInstanceCreator, HttpServletRequest


Copyright © 2009 IBM. All Rights Reserved.