This commit is contained in:
Filip Izydorczyk 2020-07-27 16:44:04 +02:00
parent 8da4ffeffe
commit 2ab40a24c7
10 changed files with 106 additions and 18 deletions

View File

@ -0,0 +1,9 @@
package com.plannaplan;
public class Acceptor {
public Acceptor() {
}
public void run() {
}
}

View File

@ -0,0 +1,9 @@
package com.plannaplan;
public class Emailer {
public Emailer() {
}
public void performAllMails() {
}
}

View File

@ -0,0 +1,13 @@
package com.plannaplan;
import com.plannaplan.interfaces.EventCreator;
public class EventChcker implements EventCreator {
@Override
public void update() {
// TODO Auto-generated method stub
}
}

View File

@ -0,0 +1,19 @@
package com.plannaplan;
import com.plannaplan.interfaces.Historable;
public class TransferValidator implements Historable {
public TransferValidator() {
}
public void performAllTransfers() {
}
@Override
public void addActionToHistory() {
// TODO Auto-generated method stub
}
}

View File

@ -0,0 +1,26 @@
package com.plannaplan.abstracts;
import java.util.ArrayList;
import java.util.List;
import com.plannaplan.interfaces.EventCreator;
public abstract class EventWatcher {
protected List<EventCreator> creators;
public EventWatcher() {
this.creators = new ArrayList<>();
}
public void attach(EventCreator creator) {
this.creators.add(creator);
}
public void detach(EventCreator creator) {
this.creators.remove(creator);
}
public void update() {
}
}

View File

@ -1,19 +1,17 @@
package com.plannaplan.services;
import com.plannaplan.interfaces.EventCreator;
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.repositories.AssignmentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AssignmentService implements EventCreator {
public class AssignmentService extends EventWatcher {
@Autowired
private AssignmentRepository repo;
@Override
public void update() {
// TODO Auto-generated method stub
public AssignmentService() {
super();
}
}

View File

@ -1,19 +1,17 @@
package com.plannaplan.services;
import com.plannaplan.interfaces.EventCreator;
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.repositories.TransferRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class TransferService implements EventCreator {
public class TransferService extends EventWatcher {
@Autowired
private TransferRepository repo;
@Override
public void update() {
// TODO Auto-generated method stub
public TransferService() {
super();
}
}

View File

@ -1,20 +1,18 @@
package com.plannaplan.services;
import com.plannaplan.interfaces.EventCreator;
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.repositories.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserService implements EventCreator {
public class UserService extends EventWatcher {
@Autowired
private UserRepository repo;
@Override
public void update() {
// TODO Auto-generated method stub
public UserService() {
super();
}
}

View File

@ -0,0 +1,9 @@
package com.plannaplan.transferutils;
public class TransferMatcher {
public TransferMatcher() {
}
public void findMatches() {
}
}

View File

@ -0,0 +1,9 @@
package com.plannaplan.transferutils;
public class TransfersExecuter {
public TransfersExecuter() {
}
public void execute() {
}
}