@Override public ApiConfigurator removeModelNamePrefixes(String... prefixes) { Collections2.addAll(removalModelNamePrefixes, prefixes); return this; }
@Override protected void registerSystemSchemas() { Collections2.addAll(systemSchemas, SYSTEM_SCHEMAS); }
@Override public THttpClient addContextPaths(String... contextPaths) { Collections2.addAll(this.contextPaths, contextPaths); return this; } }
@Override protected void registerSystemSchemas() { Collections2.addAll(systemSchemas, SYSTEM_SCHEMAS); }
public void addExcludedEntities(String... names) { Collections2.addAll(this.excludedEntities, names); }
@Override protected void registerSystemSchemas() { Collections2.addAll(systemSchemas, SYSTEM_SCHEMAS); }
@Override public SecuredPathBuilder setRoles(String... roles) { this.roles.clear(); Collections2.addAll(this.roles, roles); return this; }
protected void setSupportedOnDeleteActions(DbCascadeAction... actions) { supportedOnDeleteActions.clear(); Collections2.addAll(supportedOnDeleteActions, actions); }
@Override public SecuredPathBuilder setPermissions(String... permissions) { this.permissions.clear(); Collections2.addAll(this.permissions, permissions); return this; }
public DbSchemaBuilder addTables(DbTable... tables){ Args.notNull(tables,"tables"); Collections2.addAll(this.tables, tables); return this; }
public DbSchemaBuilder addSequences(DbSequence... sequences){ Args.notNull(sequences,"sequences"); Collections2.addAll(this.sequences, sequences); return this; }
public Resource[] getResources(String path) { path = Strings.removeStart(path, "./"); List<Resource> list = new ArrayList<>(); Collections2.addAll(list, Resources.scan("classpath*:META-INF/jmms/app/" + path)); Collections2.addAll(list, Resources.scan("classpath*:META-INF/app/" + path)); //Collections2.addAll(list, Resources.scan("classpath:app/" + path)); if(hasAppDirectory()) { Collections2.addAll(list, Resources.scan(getAppDirectory(), path)); } return list.toArray(new Resource[0]); }
@Override public void run() { try { final DefaultResourceScanner resourceScanner = new DefaultResourceScanner(loader); resourceScanner.setExecutorService(Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())); Collections2.addAll(result, resourceScanner.scan(locationPattern)); resourceScanner.getExecutorService().shutdownNow(); } catch (IOException e) { throw new NestedIOException(e); } } }));
public Resource[] getDirs(String name) { String path = Strings.removeStart(name, "./") + "/"; List<Resource> list = new ArrayList<>(); Collections2.addAll(list, Resources.scan("classpath*:META-INF/jmms/app/" + path)); Collections2.addAll(list, Resources.scan("classpath*:META-INF/app/" + path)); if(hasAppDirectory()) { Resource r = Resources.getResource(getAppDirectory(), path); if(null != r && r.exists()) { list.add(r); } } return list.toArray(new Resource[0]); }
private Pool<Jedis> createSentinelPool() { HashSet<String> hosts = new HashSet<>(); Collections2.addAll(hosts, Strings.split(sentinelHostAndPorts, ',')); return new JedisSentinelPool(sentinelMasterName, hosts, checkPoolConfig(), timeout, password, database); } }
public DbIndexBuilder(DbIndex index) { this.name = index.getName(); this.unique = index.isUnique(); Collections2.addAll(columnNames,index.getColumnNames()); }
public DefaultSecuredPathBuilder(SecuredPath path) { this.route = path.getRoute(); this.pattern = path.getPattern(); this.allowAnonymous = path.getAllowAnonymous(); this.allowClientOnly = path.getAllowClientOnly(); this.allowRememberMe = path.getAllowRememberMe(); this.failureHandler = path.getFailureHandler(); Collections2.addAll(permissions, path.getPermissions()); Collections2.addAll(roles, path.getRoles()); }
public DbForeignKeyBuilder(DbForeignKey fk) { this.name = fk.getName(); this.foreignTable = fk.getForeignTable(); this.onUpdate = fk.getOnUpdate(); this.onDelete = fk.getOnDelete(); Collections2.addAll(columns, fk.getColumns()); }