@ Override public void setDefinition ( PluginDefinition definition ) { super . setDefinition ( definition ) ; if ( definition != null ) { container . addClass ( "cwf-plugin-" + definition . getId ( ) ) ; shell . registerPlugin ( this ) ; } }
Sets the plugin definition the container will use to instantiate the plugin . If there is a status bean associated with the plugin it is registered with the container at this time . If there are style sheet resources associated with the plugin they will be added to the container at this time .