Skip to content

Instantly share code, notes, and snippets.

View josiahhaswell's full-sized avatar

Josiah Haswell josiahhaswell

  • https://sunshower.io
  • Ft. Collins
View GitHub Profile
@Getter
@Reference(
type = ComputeDeploymentTask.class,
properties = {
@Property(type = RangeElement.class, name = "memory"),
@Property(type = RangeElement.class, name = "cpu"),
@Property(type = RangeElement.class, name = "disk"),
@Property(type = Credential.class, name = "credential"),
@Property(type = RangeElement.class, name = "count")
}
@Test
void testEmptySpringContext() {
val ctx = new AnnotationConfigApplicationContext();
var objectSize = SizeOf.deepMemoryUsageOf(ctx, SizeOf.VisibilityFilter.ALL);
System.out.println(objectSize);
ctx.register(Cfg.class);
ctx.refresh();
@Configuration
public static class Config {
@Bean
public int int1() {
return 1;
}
@Bean
public class TestModule extends AbstractModule {
protected void configure() {
bind(int.class).annotatedWith(Names.named("int1")).toInstance(1);
}
public interface PluginManager {
/**
*
* @param filter
* @return the set of plugins for which the filter returns true
*/
List<Plugin> list(Predicate<Plugin> filter);
/** Wait until all pending deployments have been deployed */
public interface Plugin extends ResourceLoader, Startable, Stoppable, Lifecycle {
/**
* Useful for extension points
* @return
*/
List<String> getClassifiers();
name: Prepare Zephyr Release
on:
push:
tags:
- 't*'
jobs:
build:
runs-on: ubuntu-latest
- name: Generate Build Number
id: buildnumber
uses: einaregilsson/build-number@v2
with:
token: ${{ secrets.github_token }}
prefix: zephyr
# Accessible via ${{ steps.finalVersion.outputs.result }}
- name: Generate Build Number
id: buildnumber
uses: einaregilsson/build-number@v2
with:
token: ${{ secrets.github_token }}
prefix: zephyr
# Accessible via ${{ steps.finalVersion.outputs.result }}
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>sunshower-oss-repo</id>
<username>${oss-repo.username}</username>
<password>${oss-repo.password}</password>