public void addComponent ( final ComponentDescription description , final VirtualFile deploymentRoot ) { for ( final ViewDescription viewDescription : description . getViews ( ) ) { List < ViewInformation > viewComponents = componentsByViewName . get ( viewDescription . getViewClassName ( ) ) ; if ( viewComponents == null ) { viewComponents = new ArrayList < ViewInformation > ( 1 ) ; componentsByViewName . put ( viewDescription . getViewClassName ( ) , viewComponents ) ; } viewComponents . add ( new ViewInformation ( viewDescription , deploymentRoot , description . getComponentName ( ) ) ) ; } List < Description > components = componentsByName . get ( description . getComponentName ( ) ) ; if ( components == null ) { componentsByName . put ( description . getComponentName ( ) , components = new ArrayList < Description > ( 1 ) ) ; } components . add ( new Description ( description , deploymentRoot ) ) ; }
Add a component to this application .