protected void synchronizeMappings(ClassLoader loader) { synchronizeMappings(loader, (JDBCConfiguration) getConfiguration()); }
/** * Factory method for obtaining a possibly-pooled factory from properties. * Invoked from {@link Bootstrap#getBrokerFactory}. */ public static JDBCBrokerFactory getInstance(ConfigurationProvider cp, ClassLoader loader) { Map<String, Object> props = cp.getProperties(); Object key = toPoolKey(props); JDBCBrokerFactory factory = (JDBCBrokerFactory) getPooledFactoryForKey(key); if (factory != null) return factory; // The creation of all BrokerFactories should be driven through Bootstrap. factory = (JDBCBrokerFactory) Bootstrap.newBrokerFactory(cp, loader); pool(key, factory); return factory; }
/** * Factory method for obtaining a possibly-pooled factory from properties. * Invoked from {@link Bootstrap#getBrokerFactory}. */ public static JDBCBrokerFactory getInstance(ConfigurationProvider cp) { Map props = cp.getProperties(); Object key = toPoolKey(props); JDBCBrokerFactory factory = (JDBCBrokerFactory) getPooledFactoryForKey(key); if (factory != null) return factory; factory = newInstance(cp); pool(key, factory); return factory; }
protected BrokerImpl newBrokerImpl(String user, String pass) { BrokerImpl broker = super.newBrokerImpl(user, pass); lock(); try { // synchronize mappings; we wait until now to do this so that // we can use the first broker user/pass for connection if no // global login is given if (!_synchronizedMappings) { _synchronizedMappings = true; synchronizeMappings(broker.getClassLoader()); } return broker; } finally { unlock(); } }
@Override public DistributedJDBCConfiguration getConfiguration() { return (DistributedJDBCConfiguration)super.getConfiguration(); }
/** * Factory method for constructing a factory from properties. Invoked from * {@link Bootstrap#newBrokerFactory}. */ public static JDBCBrokerFactory newInstance(ConfigurationProvider cp) { JDBCConfigurationImpl conf = new JDBCConfigurationImpl(); cp.setInto(conf); return new JDBCBrokerFactory(conf); }
protected BrokerImpl newBrokerImpl(String user, String pass) { BrokerImpl broker = super.newBrokerImpl(user, pass); lock(); try { // synchronize mappings; we wait until now to do this so that // we can use the first broker user/pass for connection if no // global login is given if (!_synchronizedMappings) { _synchronizedMappings = true; synchronizeMappings(broker.getClassLoader()); } return broker; } finally { unlock(); } }
@Override public DistributedJDBCConfiguration getConfiguration() { return (DistributedJDBCConfiguration)super.getConfiguration(); }
/** * Factory method for constructing a factory from properties. Invoked from * {@link Bootstrap#newBrokerFactory}. */ public static JDBCBrokerFactory newInstance(ConfigurationProvider cp) { JDBCConfigurationImpl conf = new JDBCConfigurationImpl(); cp.setInto(conf); return new JDBCBrokerFactory(conf); }
protected BrokerImpl newBrokerImpl(String user, String pass) { BrokerImpl broker = super.newBrokerImpl(user, pass); lock(); try { // synchronize mappings; we wait until now to do this so that // we can use the first broker user/pass for connection if no // global login is given if (!_synchronizedMappings) { _synchronizedMappings = true; synchronizeMappings(broker.getClassLoader()); } return broker; } finally { unlock(); } }
/** * Factory method for obtaining a possibly-pooled factory from properties. * Invoked from {@link Bootstrap#getBrokerFactory}. */ public static JDBCBrokerFactory getInstance(ConfigurationProvider cp, ClassLoader loader) { Map<String, Object> props = cp.getProperties(); Object key = toPoolKey(props); JDBCBrokerFactory factory = (JDBCBrokerFactory) getPooledFactoryForKey(key); if (factory != null) return factory; // The creation of all BrokerFactories should be driven through Bootstrap. factory = (JDBCBrokerFactory) Bootstrap.newBrokerFactory(cp, loader); pool(key, factory); return factory; }
protected void synchronizeMappings(ClassLoader loader) { synchronizeMappings(loader, (JDBCConfiguration) getConfiguration()); } }
@Override public DistributedJDBCConfiguration getConfiguration() { return (DistributedJDBCConfiguration)super.getConfiguration(); }
/** * Factory method for constructing a factory from properties. Invoked from * {@link Bootstrap#newBrokerFactory}. */ public static JDBCBrokerFactory newInstance(ConfigurationProvider cp) { JDBCConfigurationImpl conf = new JDBCConfigurationImpl(); cp.setInto(conf); return new JDBCBrokerFactory(conf); }
protected BrokerImpl newBrokerImpl(String user, String pass) { BrokerImpl broker = super.newBrokerImpl(user, pass); lock(); try { // synchronize mappings; we wait until now to do this so that // we can use the first broker user/pass for connection if no // global login is given if (!_synchronizedMappings) { _synchronizedMappings = true; synchronizeMappings(broker.getClassLoader()); } return broker; } finally { unlock(); } }
/** * Factory method for obtaining a possibly-pooled factory from properties. * Invoked from {@link Bootstrap#getBrokerFactory}. */ public static JDBCBrokerFactory getInstance(ConfigurationProvider cp, ClassLoader loader) { Map<String, Object> props = cp.getProperties(); Object key = toPoolKey(props); JDBCBrokerFactory factory = (JDBCBrokerFactory) getPooledFactoryForKey(key); if (factory != null) return factory; // The creation of all BrokerFactories should be driven through Bootstrap. factory = (JDBCBrokerFactory) Bootstrap.newBrokerFactory(cp, loader); pool(key, factory); return factory; }
protected void synchronizeMappings(ClassLoader loader) { synchronizeMappings(loader, (JDBCConfiguration) getConfiguration()); } }
@Override public DistributedJDBCConfiguration getConfiguration() { return (DistributedJDBCConfiguration)super.getConfiguration(); }
/** * Factory method for constructing a factory from properties. Invoked from * {@link Bootstrap#newBrokerFactory}. */ public static JDBCBrokerFactory newInstance(ConfigurationProvider cp) { JDBCConfigurationImpl conf = new JDBCConfigurationImpl(); cp.setInto(conf); return new JDBCBrokerFactory(conf); }
protected BrokerImpl newBrokerImpl(String user, String pass) { BrokerImpl broker = super.newBrokerImpl(user, pass); lock(); try { // synchronize mappings; we wait until now to do this so that // we can use the first broker user/pass for connection if no // global login is given if (!_synchronizedMappings) { _synchronizedMappings = true; synchronizeMappings(broker.getClassLoader()); } return broker; } finally { unlock(); } }