- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
@Override protected IDatastoreOperationLockManager createServiceImplementation() throws SnowowlServiceException { final DatastoreOperationLockManager service = new DatastoreOperationLockManager(); final RemoteLockTargetListener remoteLockTargetListener = new RemoteLockTargetListener(); service.addLockTargetListener(new Slf4jOperationLockTargetListener()); service.addLockTargetListener(remoteLockTargetListener); ApplicationContext.getInstance().addServiceListener(IApplicationSessionManager.class, new IServiceChangeListener<IApplicationSessionManager>() { @Override public void serviceChanged(final IApplicationSessionManager oldService, final IApplicationSessionManager newService) { if (oldService != null) { ((ApplicationSessionManager) oldService).removeListener(remoteLockTargetListener); } if (newService != null) { ((ApplicationSessionManager) newService).addListener(remoteLockTargetListener); } } }); return service; } }