• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CustomResolverServiceLocator类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中liquibase.servicelocator.CustomResolverServiceLocator的典型用法代码示例。如果您正苦于以下问题:Java CustomResolverServiceLocator类的具体用法?Java CustomResolverServiceLocator怎么用?Java CustomResolverServiceLocator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

CustomResolverServiceLocator类属于liquibase.servicelocator包,在下文中一共展示了CustomResolverServiceLocator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: replaceLiquibaseServiceLocator

点赞 2

import liquibase.servicelocator.CustomResolverServiceLocator; //导入依赖的package包/类
public static void replaceLiquibaseServiceLocator() {
    final CustomResolverServiceLocator customResolverServiceLocator =
            new CustomResolverServiceLocator(new SpringPackageScanClassResolver());
    customResolverServiceLocator.addPackageToScan(Slf4jLiquibaseLogger.class.getPackage().getName());
    ServiceLocator.setInstance(customResolverServiceLocator);
    liquibase.logging.LogFactory.reset();
}
 

开发者ID:suomenriistakeskus,
项目名称:oma-riista-web,
代码行数:8,
代码来源:LiquibaseConfig.java

示例2: start

点赞 2

import liquibase.servicelocator.CustomResolverServiceLocator; //导入依赖的package包/类
@Override
public void start(final BundleContext context) throws Exception {
    final PackageScanClassResolver resolver = new OSGIPackageScanClassResolver(context.getBundle());
    ServiceLocator.setInstance(new CustomResolverServiceLocator(resolver));

    final ServiceReference<ConfigurationAdmin> configurationAdminServiceReference = context.getServiceReference(ConfigurationAdmin.class);
    if (configurationAdminServiceReference != null) {
        initialise(context, configurationAdminServiceReference);
    }

    final String filter = String.format("(objectClass=%s)", ConfigurationAdmin.class.getName());
    context.addServiceListener(this, filter);
}
 

开发者ID:ventilb,
项目名称:stagediver.fx-database,
代码行数:14,
代码来源:DatabaseBundleActivator.java

示例3: replaceServiceLocator

点赞 2

import liquibase.servicelocator.CustomResolverServiceLocator; //导入依赖的package包/类
public void replaceServiceLocator() {
	ServiceLocator.setInstance(new CustomResolverServiceLocator(
			new SpringPackageScanClassResolver(logger)));
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:5,
代码来源:LiquibaseServiceLocatorApplicationListener.java

示例4: replaceServiceLocator

点赞 2

import liquibase.servicelocator.CustomResolverServiceLocator; //导入依赖的package包/类
public void replaceServiceLocator() {
	ServiceLocator.getInstance().addPackageToScan(
			CommonsLoggingLiquibaseLogger.class.getPackage().getName());
	ServiceLocator.setInstance(new CustomResolverServiceLocator(
			new SpringPackageScanClassResolver(logger)));
}
 

开发者ID:Nephilim84,
项目名称:contestparser,
代码行数:7,
代码来源:LiquibaseServiceLocatorApplicationListener.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)