private static void destroyControl ( Object controlInstance ) { assert controlInstance instanceof ControlBean : controlInstance . getClass ( ) . getName ( ) ; BeanContext beanContext = ( ( ControlBean ) controlInstance ) . getBeanContext ( ) ; if ( beanContext != null ) { if ( LOG . isTraceEnabled ( ) ) LOG . trace ( "Removing control " + controlInstance + " from ControlBeanContext " + beanContext ) ; beanContext . remove ( controlInstance ) ; } }
Destroy a Beehive Control .