private void share(Track track) { try { AllLink allLink = AllLink.parse(track.getDownloadString()); sharerManager.share(allLink); } catch (IllegalArgumentException iae) { log.error("Unable to share track" + track, iae); } catch (ShareException e) { log.error("Unable to share track" + track, e); } }
@PostConstruct public void initialize() { sharerManager.addSharerListener(this); }