@Test public void testGetLock() throws Exception { new FacadeGetterMapping.Tester<>(LockManager.class, this::getFacade) .testFacadeGetter(Lock.class, LockFacade.class, delegate -> delegate.getLock("")); }
@Override public Lock getLock(String absPath) throws RepositoryException { Lock internal = delegate.getLock(absPath); return new LockFacade<>(internal, session); }
LockManagerFacade implements LockManager { @Override public Lock getLock(String absPath) throws RepositoryException { Lock internal = delegate.getLock(absPath); return new LockFacade<>(internal, session); } }
LockManagerFacade implements LockManager { @Override public Lock getLock(String absPath) throws RepositoryException { Lock internal = delegate.getLock(absPath); return new LockFacade<>(internal, session); } LockManagerFacade(final @NotNull LockManager delegate, final @NotNull SessionFacade<S> session); }
LockManagerFacade implements LockManager { @Override public Lock getLock(String absPath) throws RepositoryException { Lock internal = delegate.getLock(absPath); return new LockFacade<>(internal, session); } LockManagerFacade(final @NotNull LockManager delegate, final @NotNull SessionFacade<S> session); @Override Lock getLock(String absPath); @Override String[] getLockTokens(); @Override boolean holdsLock(String absPath); @Override boolean isLocked(String absPath); @Override void addLockToken(String lockToken); @Override Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo); @Override void removeLockToken(String lockToken); @Override void unlock(String absPath); }
LockManagerFacade implements LockManager { @Override public Lock getLock(String absPath) throws RepositoryException { Lock internal = delegate.getLock(absPath); return new LockFacade<>(internal, session); } LockManagerFacade(final @NotNull LockManager delegate, final @NotNull SessionFacade<S> session); @Override Lock getLock(String absPath); @Override String[] getLockTokens(); @Override boolean holdsLock(String absPath); @Override boolean isLocked(String absPath); @Override void addLockToken(String lockToken); @Override Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo); @Override void removeLockToken(String lockToken); @Override void unlock(String absPath);  }