Skip to content

Instantly share code, notes, and snippets.

@cjvirtucio87
Created March 22, 2017 02:56
Show Gist options
  • Save cjvirtucio87/fc3c9dbf47731cb1f4931099ab1d1252 to your computer and use it in GitHub Desktop.
Save cjvirtucio87/fc3c9dbf47731cb1f4931099ab1d1252 to your computer and use it in GitHub Desktop.
// org.yournamespace.Store.java
@Service
public class Store {
private Map<String, Info> fileState;
public Store(Map fileState) {
this.fileState = fileState;
}
@Bean
public void update(Info info) {
// ...
}
@Bean
public void peek(Info info) {
// ...
}
}
// org.yournamespace.WritingUtil.java
@Service
public class WritingUtil {
private Info fileInfo;
@Bean
public WritingUtil(Info info) {
this.fileInfo = info;
}
@Bean
public Long write() {
// ...
}
@Bean
public Long peek() {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment