Code example for EventBus

Methods: register

0
                           VelocityEngine velocityEngine,
                           GeneratorUtil generatorUtil,
                           EventBus eventBus) {
        super(typeOracle, logger, velocityContextProvider, velocityEngine, generatorUtil);
 
        eventBus.register(this);
    } 
 
    public String generate(JType type) throws UnableToCompleteException {
        this.type = type;
 
        String implName = type.getParameterizedQualifiedSourceName();
        implName = implName.replaceAll("[ ,<>\\.\\?]", "_");
        implName += "Mapper";
 
        mergeTemplate(TEMPLATE, implName);
        return implName;
    } 
 
    @Override 
Experience pair programming with AI  Get Codota for Java