Search in sources :

Example 6 with State

use of org.apache.felix.fileinstall.plugins.installer.State in project felix by apache.

the class InstallableUnitImpl method setState.

/**
 * Set the state, return true if the state changed.
 */
boolean setState(State state) {
    if (state == null) {
        throw new IllegalArgumentException("null state not permitted!");
    }
    State oldState = this.state;
    this.state = state;
    return !this.state.equals(oldState);
}
Also used : State(org.apache.felix.fileinstall.plugins.installer.State)

Aggregations

State (org.apache.felix.fileinstall.plugins.installer.State)6 InstallableUnitEvent (org.apache.felix.fileinstall.plugins.installer.InstallableUnitEvent)5 ArrayList (java.util.ArrayList)3 LinkedList (java.util.LinkedList)3 CopyOnWriteArrayList (java.util.concurrent.CopyOnWriteArrayList)3 List (java.util.List)2 Bundle (org.osgi.framework.Bundle)2 File (java.io.File)1 Collection (java.util.Collection)1 JarFile (java.util.jar.JarFile)1 Artifact (org.apache.felix.fileinstall.plugins.installer.Artifact)1