Package aQute.bnd.build
Class WorkspaceNotifier
java.lang.Object
aQute.bnd.build.WorkspaceNotifier
- All Implemented Interfaces:
Closeable,AutoCloseable
Implements the event bus for the workspace, projects and repositories. It can
create
OnWorkspace objects that client can use to get events. Clients
can close and this will clean up. The class is private to the workspace.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum(package private) class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) final Map<WorkspaceNotifier.ET,Object> (package private) final Object(package private) boolean(package private) final MultiMap<WorkspaceNotifier.ET,WorkspaceNotifier.Receipt> (package private) int(package private) final SerialExecutor(package private) final Workspace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> voidbroadcast(WorkspaceNotifier.ET type, T arg) (package private) voidvoidchangedProject(Project project) voidclose()(package private) void(package private) <T> voidifSameRevision(int revision, WorkspaceNotifier.ET type, T arg) (package private) int(package private) void(package private) OnWorkspacevoidprojects(Collection<Project> projects) (package private) voidrepos(List<RepositoryPlugin> repos)
-
Field Details
-
ons
-
last
-
lock
-
workspace
-
events
-
serial
-
revision
int revision -
closed
boolean closed -
mute
volatile boolean mute
-
-
Constructor Details
-
WorkspaceNotifier
WorkspaceNotifier(Workspace workspace)
-
-
Method Details
-
initialized
int initialized() -
message
-
closing
-
repos
-
build
-
projects
-
changedProject
-
broadcast
-
on
-
ifSameRevision
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-