Examples of JDBCConfig


Examples of br.gov.frameworkdemoiselle.internal.configuration.JDBCConfig

  }

  private Set<String> getDataSourceNames(ClassLoader classLoader) {
    Set<String> result = new HashSet<String>();

    JDBCConfig config = Beans.getReference(JDBCConfig.class);

    if (config.getJndiName() != null) {
      result.addAll(config.getJndiName().keySet());
    }

    if (config.getDriverClass() != null) {
      result.addAll(config.getDriverClass().keySet());
    }

    if (result.isEmpty()) {
      throw new DemoiselleException(bundle.getString("datasource-name-not-found"));
    }
View Full Code Here

Examples of br.gov.frameworkdemoiselle.internal.configuration.JDBCConfig

  }

  private DataSource initDataSource(String dataSourceName) {
    DataSource result;

    JDBCConfig config = Beans.getReference(JDBCConfig.class);
    String jndi = config.getJndiName() == null ? null : config.getJndiName().get(dataSourceName);
    String url = config.getUrl() == null ? null : config.getUrl().get(dataSourceName);

    if (jndi != null) {
      result = initJNDIDataSource(dataSourceName, jndi);

    } else if (url != null) {
View Full Code Here

Examples of br.gov.frameworkdemoiselle.internal.configuration.JDBCConfig

  }

  private Set<String> getDataSourceNames(ClassLoader classLoader) {
    Set<String> result = new HashSet<String>();

    JDBCConfig config = Beans.getReference(JDBCConfig.class);

    if (config.getJndiName() != null) {
      result.addAll(config.getJndiName().keySet());
    }

    if (config.getDriverClass() != null) {
      result.addAll(config.getDriverClass().keySet());
    }

    if (result.isEmpty()) {
      throw new DemoiselleException(bundle.getString("datasource-name-not-found"));
    }
View Full Code Here

Examples of br.gov.frameworkdemoiselle.internal.configuration.JDBCConfig

  }

  private DataSource initDataSource(String dataSourceName) {
    DataSource result;

    JDBCConfig config = Beans.getReference(JDBCConfig.class);
    String jndi = config.getJndiName() == null ? null : config.getJndiName().get(dataSourceName);
    String url = config.getUrl() == null ? null : config.getUrl().get(dataSourceName);

    if (jndi != null) {
      result = initJNDIDataSource(dataSourceName, jndi);

    } else if (url != null) {
View Full Code Here

Examples of br.gov.frameworkdemoiselle.internal.configuration.JDBCConfig

  }

  private Set<String> getDataSourceNames(ClassLoader classLoader) {
    Set<String> result = new HashSet<String>();

    JDBCConfig config = Beans.getReference(JDBCConfig.class);

    if (config.getJndiName() != null) {
      result.addAll(config.getJndiName().keySet());
    }

    if (config.getDriverClass() != null) {
      result.addAll(config.getDriverClass().keySet());
    }

    if (result.isEmpty()) {
      throw new DemoiselleException(getBundle().getString("datasource-name-not-found"));
    }
View Full Code Here

Examples of br.gov.frameworkdemoiselle.internal.configuration.JDBCConfig

  }

  private DataSource initDataSource(String dataSourceName) {
    DataSource result;

    JDBCConfig config = Beans.getReference(JDBCConfig.class);
    String jndi = config.getJndiName() == null ? null : config.getJndiName().get(dataSourceName);
    String url = config.getUrl() == null ? null : config.getUrl().get(dataSourceName);

    if (jndi != null) {
      result = initJNDIDataSource(dataSourceName, jndi);

    } else if (url != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.