protected void loadConfig ( ) { if ( ! isEnabled ( ) ) { return ; } final String urlProp = format ( PROPERTY_FORMAT , id , "url" ) ; LRSUrl = propertyResolver . getProperty ( urlProp ) ; actorName = propertyResolver . getProperty ( format ( PROPERTY_FORMAT , id , "actor-name" ) , actorName ) ; actorEmail = propertyResolver . getProperty ( format ( PROPERTY_FORMAT , id , "actor-email" ) , actorEmail ) ; activityId = propertyResolver . getProperty ( format ( PROPERTY_FORMAT , id , "activity-id" ) , activityId ) ; stateId = propertyResolver . getProperty ( format ( PROPERTY_FORMAT , id , "state-id" ) , stateId ) ; formEncodeActivityData = propertyResolver . getProperty ( format ( PROPERTY_FORMAT , id , "form-encode-activity-data" ) , Boolean . class , formEncodeActivityData ) ; activitiesFormParamName = propertyResolver . getProperty ( format ( PROPERTY_FORMAT , id , "activity-form-param-name" ) , activitiesFormParamName ) ; if ( StringUtils . isEmpty ( LRSUrl ) ) { logger . error ( "Disabling TinCan API interface. Property {} not set!" , urlProp ) ; enabled = false ; return ; } // strip trailing '/' if included LRSUrl = LRSUrl . replaceAll ( "/*$" , "" ) ; }
Read the LRS config .