AddListenerをpublicにしました。
ゴメンネ( ;∀;)
1 parent 96b6f28 commit eb5b68c0bd9e01c74f2c7dffa4588d42273a246c
g-shimokawa authored on 16 May
Showing 1 changed file
View
21
src/main/java/org/ntlab/citrusserver/repositories/BookManager.java
 
private final List<IBookListener> iBookListeners = new ArrayList<>();
 
//IBookListenerを追加
private void addListener(IBookListener iBookListener)
public void addListener(IBookListener iBookListener)
{
iBookListeners.add(iBookListener);
}
 
//IBookListenerに通知する
private void notifyListener(Account account, Book book)
{
for(IBookListener iBookListener : iBookListeners)
{
iBookListener.bookChanged(account, book);
}
}
 
 
@Autowired
public BookManager(AccountManager accountManager) {
this.accountManager = accountManager;
return 1;
}
 
}
 
//IBookListenerに通知する
private void notifyListener(Account account, Book book)
{
for(IBookListener iBookListener : iBookListeners)
{
iBookListener.bookChanged(account, book);
}
}
}