/* * Copyright 2009-2013 UnboundID Corp. * All Rights Reserved. */ /* * Copyright (C) 2009-2013 UnboundID Corp. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License (GPLv2 only) * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses>. */ package com.hwlcn.ldap.ldap.sdk.persist; import com.hwlcn.ldap.ldap.sdk.SearchResultEntry; import com.hwlcn.ldap.ldap.sdk.SearchResultReference; import com.hwlcn.core.annotation.Extensible; import com.hwlcn.core.annotation.ThreadSafety; import com.hwlcn.ldap.util.ThreadSafetyLevel; @Extensible() @ThreadSafety(level=ThreadSafetyLevel.INTERFACE_NOT_THREADSAFE) public interface ObjectSearchListener<T> { void objectReturned(final T o); void unparsableEntryReturned(final SearchResultEntry entry, final LDAPPersistException exception); void searchReferenceReturned(final SearchResultReference searchReference); }