com.github.dynamicextensionsalfresco.event.events.SpringContextException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of event-bus Show documentation
Show all versions of event-bus Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.event.events;
import com.github.dynamicextensionsalfresco.event.Event;
import org.jetbrains.annotations.NotNull;
import org.osgi.framework.Bundle;
/**
* @author Laurent Van der Linden
*/
public final class SpringContextException implements Event {
@NotNull
private final Bundle bundle;
@NotNull
private final Exception exception;
public SpringContextException(@NotNull Bundle bundle, @NotNull Exception exception) {
if (bundle == null) {
throw new IllegalArgumentException("bundle is null");
}
if (exception == null) {
throw new IllegalArgumentException("exception is null");
}
this.bundle = bundle;
this.exception = exception;
}
@NotNull
public final Bundle getBundle() {
return this.bundle;
}
@NotNull
public final Exception getException() {
return this.exception;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy