WildFly for Custom Java File, etc. event listener

How can I run the event listener or a custom java file for processes with Wildfly? For the normal bpm run file I can access the java files via eclipse, but how can I do that via wildfly.

Best Regard…