private static void buildComponents ( ExecutionContext context ) throws ClassNotFoundException , NoSuchMethodException , IllegalAccessException , InvocationTargetException , InstantiationException { Collection < BeanDef > cDefs = context . getTopologyDef ( ) . getComponents ( ) ; if ( cDefs != null ) { for ( BeanDef bean : cDefs ) { Object obj = buildObject ( bean , context ) ; context . addComponent ( bean . getId ( ) , obj ) ; } } }
Given a topology definition resolve and instantiate all components found and return a map keyed by the component id .