private Invocation buildInvocation(final Class<?> type) { final Invocation before = buildInvocation(Phase.BEFORE, type); final Invocation after = buildInvocation(Phase.AFTER, type); final Invocation invoke = buildInvocation(Phase.INVOKE, type); if (IGNORE == before && IGNORE == after) { return invoke; } else { return new BeforeAndAfterInvocationSet(before, invoke, after); } }
@Event public class AssemblerCreated { @Override public String toString() { return "AssemblerCreated{}"; } }
private <E> E doFire(final E event) { final Class<?> type = event.getClass(); final Invocation invocation = getInvocation(type); invocation.invoke(event); return event; }
/** * @version $Rev$ $Date$ */ @Event public class ContainerSystemPostCreate { @Override public String toString() { return "ContainerSystemPostCreate{}"; } }
private Invocation buildInvocation(final Class<?> type) { final Invocation before = buildInvocation(Phase.BEFORE, type); final Invocation after = buildInvocation(Phase.AFTER, type); final Invocation invoke = buildInvocation(Phase.INVOKE, type); if (IGNORE == before && IGNORE == after) { return invoke; } else { return new BeforeAndAfterInvocationSet(before, invoke, after); } }
private <E> E doFire(final E event) { final Class<?> type = event.getClass(); final Invocation invocation = getInvocation(type); invocation.invoke(event); return event; }
@Override public void invoke(final Object event) { for (final Invocation invocation : invocations) { invocation.invoke(event); } } }
@Event public class AssemblerDestroyed { @Override public String toString() { return "AssemblerDestroyed{}"; } }
@Override public void invoke(final Object event) { for (final Invocation invocation : invocations) { invocation.invoke(event); } } }
@Event public class ResourceCreated extends ResourceEvent{ public ResourceCreated(final Object resource, final String name) { super(name, resource); } }
@Event public class BusCreated { private final Bus bus; public BusCreated(final Bus bus) { this.bus = bus; } public Bus getBus() { return bus; } }
@Event public class DeployableInfoDestroyed { private final DeployableInfo deployable; public DeployableInfoDestroyed(final DeployableInfo deployable) { this.deployable = deployable; } public DeployableInfo getDeployable() { return deployable; } }
@Event public class StartWatchFile extends WatchFile { public StartWatchFile(final File file) { super(file); } }
@Event public class AssemblerCreated { @Override public String toString() { return "AssemblerCreated{}"; } }
@Event public class ValidateAppModule { private final AppModule module; public ValidateAppModule(final AppModule appModule) { this.module = appModule; } public AppModule getModule() { return module; } }
/** * @version $Rev$ $Date$ */ @Event public class ContainerSystemPostCreate { @Override public String toString() { return "ContainerSystemPostCreate{}"; } }
@Event public class AssemblerDestroyed { @Override public String toString() { return "AssemblerDestroyed{}"; } }
/** * @version $Rev$ $Date$ */ @Event public class ContainerSystemPreDestroy { @Override public String toString() { return "ContainerSystemPreDestroy{}"; } }