00001 /* 00002 * AddressProviderFactory.hpp 00003 * 00004 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. 00005 * 00006 * Oracle is a registered trademarks of Oracle Corporation and/or its 00007 * affiliates. 00008 * 00009 * This software is the confidential and proprietary information of Oracle 00010 * Corporation. You shall not disclose such confidential and proprietary 00011 * information and shall use it only in accordance with the terms of the 00012 * license agreement you entered into with Oracle. 00013 * 00014 * This notice may not be removed or altered. 00015 */ 00016 #ifndef COH_ADDRESS_PROVIDER_FACTORY_HPP 00017 #define COH_ADDRESS_PROVIDER_FACTORY_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 #include "coherence/net/AddressProvider.hpp" 00022 00023 COH_OPEN_NAMESPACE2(coherence,net) 00024 00025 /** 00026 * A factory for {@link AddressProvider} objects. 00027 * 00028 * @author wl 2012.04.04 00029 * @since Coherence 12.1.2 00030 */ 00031 class COH_EXPORT AddressProviderFactory 00032 : public interface_spec<AddressProviderFactory > 00033 { 00034 public: 00035 /** 00036 * Create a new AddressProvider. 00037 * 00038 * @param vLoader the optional ClassLoader with which to configure the 00039 * new AddressProvider. 00040 * @return an instance of the corresponding AddressProvider 00041 * implementation. 00042 * 00043 */ 00044 virtual AddressProvider::Handle createAddressProvider(ClassLoader::View vLoader = NULL) = 0; 00045 }; 00046 00047 COH_CLOSE_NAMESPACE2 00048 00049 #endif // COH_ADDRESS_PROVIDER_FACTORY_HPP