Example #1
0
            public PoolableConnector NewObject()
            {
                Configuration config =
                    CSharpClassProperties.CreateBean((ConfigurationPropertiesImpl)_apiConfiguration.ConfigurationProperties,
                                                     _localInfo.ConnectorConfigurationClass);
                PoolableConnector connector =
                    (PoolableConnector)_localInfo.ConnectorClass.CreateInstance();

                connector.Init(config);
                return(connector);
            }
Example #2
0
        CreateDefaultAPIConfiguration(LocalConnectorInfoImpl localInfo)
        {
            SafeType <Connector> connectorClass =
                localInfo.ConnectorClass;
            APIConfigurationImpl rv     = new APIConfigurationImpl();
            Configuration        config =
                localInfo.ConnectorConfigurationClass.CreateInstance();
            bool pooling = IsPoolingSupported(connectorClass);

            rv.IsConnectorPoolingSupported = pooling;
            rv.ConfigurationProperties     = (CSharpClassProperties.CreateConfigurationProperties(config));
            rv.ConnectorInfo       = (localInfo);
            rv.SupportedOperations = (FrameworkUtil.GetDefaultSupportedOperations(connectorClass));
            return(rv);
        }