Annotation Type ModelResourceListener


@Target(TYPE)
@Retention(RUNTIME)
public @interface ModelResourceListener
Allows you to register a listener for a model for the ModelResource. This should be added (at the class-level) to a subclass of BaseModelResourceListener. There are 3 parameters: modelLevelType, customModelName, and name (of type String). modelLevelType is required to successfully register your listener. You may use an asterisk for customModelName to indicate "any" custommodel. (When omitted, customModelName is assumed to map to the "Standard" custom model.) It is also strongly recommended that you supply the name, which is a unique identifier for your listener that allows you to tie it specifically to your subclass of One.model.ModelFormContainer (see https://devnet.dn.onenetwork.com/oms/apps/DeveloperNetwork/www/docs/api/jsdoc/index.html?class=One.model.ModelFormContainer&member=modelInfo).
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    java.lang.String modelLevelType  
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    java.lang.String customModelName  
    java.lang.String name