public void configure ( Object object , String objectName ) { if ( object == null ) { logger . debug ( "object to be configured is null" ) ; return ; } Assert . notNull ( objectName , "objectName" ) ; if ( object instanceof TitleConfigurable ) { configureTitle ( ( TitleConfigurable ) object , objectName ) ; } if ( object instanceof LabelConfigurable ) { configureLabel ( ( LabelConfigurable ) object , objectName ) ; } if ( object instanceof ColorConfigurable ) { configureColor ( ( ColorConfigurable ) object , objectName ) ; } if ( object instanceof CommandLabelConfigurable ) { configureCommandLabel ( ( CommandLabelConfigurable ) object , objectName ) ; } if ( object instanceof DescriptionConfigurable ) { configureDescription ( ( DescriptionConfigurable ) object , objectName ) ; } if ( object instanceof ImageConfigurable ) { configureImage ( ( ImageConfigurable ) object , objectName ) ; } if ( object instanceof IconConfigurable ) { configureIcon ( ( IconConfigurable ) object , objectName ) ; } if ( object instanceof CommandIconConfigurable ) { configureCommandIcons ( ( CommandIconConfigurable ) object , objectName ) ; } if ( object instanceof Secured ) { configureSecurityController ( ( Secured ) object , objectName ) ; } }
Configures the given object according to the interfaces that it implements .