com.bowstreet.webapp
Interface ModelInstanceCreator


public interface ModelInstanceCreator

Interface used to create and instance of a WebApp Model.


Method Summary
 WebAppAccess getModelInstance(java.lang.String modelName, java.lang.String profile, boolean singleton)
          Gets the WebAppAccess for the specified model.
 

Method Detail

getModelInstance

WebAppAccess getModelInstance(java.lang.String modelName,
                              java.lang.String profile,
                              boolean singleton)
Gets the WebAppAccess for the specified model. If needed this will instantiate a Model instance.

Parameters:
modelName - The name of the Model to get.
profile - The explicit profile name(s) to use to get the Model or null if none.
singleton - Specifies if the model should be single instance. If true then the instance of the model is shared within the session, if false then a unique copy is created and returned.
Returns:
The WebAppAccess for the specified Model.
See Also:
WebAppAccess


Copyright © 2009 IBM. All Rights Reserved.