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

com.github.dynamicextensionsalfresco.event.events.SpringContextException Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
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