public ControlBean getBean ( String id ) { // If no control id separator found, the bean is a direct child of this context int delim = id . indexOf ( org . apache . beehive . controls . api . bean . ControlBean . IDSeparator ) ; if ( delim < 0 ) // child is a direct descendent return ( ControlBean ) _childMap . get ( id ) ; // Find the child referenced by the first element in the path ControlBean bean = ( ControlBean ) _childMap . get ( id . substring ( 0 , delim ) ) ; if ( bean == null ) return bean ; // Get the BeanContext associated with the found child, and then ask it // to resolve the rest of the path return bean . getBeanContextProxy ( ) . getBean ( id . substring ( delim + 1 ) ) ; }
Returns a ControlBean instance nested the current BeanContext .