I have the following abstract class:
public abstract class AbstractRepository<O, PK extends Serializable>{
protected EventDispatcher eventDispatcher;
protected GenericDao<O,PK> dao;
protected ApplicationPublisher publisher;
protected State state;
protected InternalPublisher internalPublisher;
@PostConstruct
private void initialise(){
    eventDispatcher.addHandler(this);
}
protected <T extends GenericDao<O,PK>> AbstractRepository(T dao, State state, ApplicationPublisher publisher, InternalPublisher internalPublisher, EventDispatcher eventDispatcher){
    this.dao = dao;
    this.state = state;
    this.publisher = publisher;
    this.internalPublisher = internalPublisher;
    this.eventDispatcher = eventDispatcher;
}
@HandleEvent
private void handleDataContributorCreatedEvent(DataContributorDeletedEvent event){
    List<O> stats = new ArrayList<O>();
    for(int x = -1 ; x < 50 ; x++){
        for (int y = 0 ; y < 360 ; y = y + 5){
            stats.add(**Need to instantiate paramater type O here**);
        }   
    }
    dao.save(stats);
}
}
Within the event handler method - I want to be able to create an instance of the Parameter Type, O - but not sure how do this. Any help regarding the best approach would be appreciated.
 
     
     
     
     
    