All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.btrace.server.wireio.EventCommandImpl Maven / Gradle / Ivy

The newest version!
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.java.btrace.server.wireio;

import net.java.btrace.api.wireio.Command;
import net.java.btrace.api.core.Lookup;
import net.java.btrace.spi.wireio.CommandImpl;
import net.java.btrace.api.server.Session;
import net.java.btrace.wireio.commands.EventCommand;




/**
 *
 * @author Jaroslav Bachorik
 */
@Command(clazz=EventCommand.class)
public class EventCommandImpl extends CommandImpl {
    @Override
    public void execute(Lookup ctx, EventCommand cmd) {
        Session s = ctx.lookup(Session.class);
        s.event(cmd.getEvent());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy