protected void handleAnotherVersionAtStartup ( Bundle bundle ) throws BundleException { Version myVersion = this . bundle . getVersion ( ) ; Version otherVersion = bundle . getVersion ( ) ; if ( myVersion . compareTo ( otherVersion ) > 0 ) { handleNewerVersionAtStartup ( bundle ) ; } else { handleOlderVersionAtStartup ( bundle ) ; } }
Called when another version of this bundle is found in the bundle context .