Examples of WaitableSignal


Examples of org.jtrim.concurrent.WaitableSignal

    private volatile Object lastModel;

    public SingleModelExtension(Class<?> requestedModel) {
        ExceptionHelper.checkNotNullArgument(requestedModel, "requestedModel");
        this.requestedModel = requestedModel;
        this.loadedSignal = new WaitableSignal();
        this.lastModel = null;
    }
View Full Code Here

Examples of org.jtrim.concurrent.WaitableSignal

        ExceptionHelper.checkNotNullArgument(project, "project");

        this.project = project;
        this.propertiesRef = new AtomicReference<>(null);
        this.changes = new ChangeSupport(this);
        this.loadedSignal = new WaitableSignal();

        this.auxProperties = new ConcurrentHashMap<>();
        this.auxConfigListener = new MutablePropertyProxy<>(new ProjectMutablePropertyRef<Void>(this) {
            @Override
            public MutableProperty<Void> getProperty() {
View Full Code Here

Examples of org.jtrim.concurrent.WaitableSignal

        this.loadErrorRef = new AtomicReference<>(null);
        this.modelChanges = new ChangeSupport(this);
        this.currentModelRef = new AtomicReference<>(
                GradleModelLoader.createEmptyModel(projectDirAsFile));

        this.loadedAtLeastOnceSignal = new WaitableSignal();
        this.name = projectDir.getNameExt();
        this.extensionRefs = Collections.emptyList();
        this.extensionNames = Collections.emptySet();
        this.lookupRef = new AtomicReference<>(null);
    }
View Full Code Here

Examples of org.jtrim.concurrent.WaitableSignal

        ProjectProperties properties;
        if (config == null) {
            properties = project.getLoadedProperties(cancelToken);
        }
        else {
            final WaitableSignal loadedSignal = new WaitableSignal();
            properties = project.getPropertiesForProfile(config.getProfileDef(), true, new PropertiesLoadListener() {
                @Override
                public void loadedProperties(ProjectProperties properties) {
                    loadedSignal.signal();
                }
            });
            loadedSignal.waitSignal(cancelToken);
        }
        return properties;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.