Skip to content

Instantly share code, notes, and snippets.

@bandicoot86
Last active June 1, 2019 05:56
Show Gist options
  • Save bandicoot86/e5d71f8da5f91166956d3cab4eda4816 to your computer and use it in GitHub Desktop.
Save bandicoot86/e5d71f8da5f91166956d3cab4eda4816 to your computer and use it in GitHub Desktop.
SelfBean.java
package com.example.demo;
public class SelfManagedBean {
private final Bean1 b1;
private final Bean2 b2;
public SelfManagedBean() {
this.b1 = new Bean1();
this.b2 = new Bean2();
}
public static void main(String[] args) {
new SelfManagedBean();
}
public static class Bean1 {
}
public static class Bean2 {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment