Package org.jboss.gwt.circuit

Examples of org.jboss.gwt.circuit.StoreCallback


    @Inject
    public TodoStoreAdapter(final TodoStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(TodoStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.gwt.circuit.sample.todo.client.actions.SelectUser) {
                    return new Agreement(true, org.jboss.gwt.circuit.sample.todo.client.stores.UserStore.class);
                }
View Full Code Here


    @Inject
    public UserStoreAdapter(final UserStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(UserStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.gwt.circuit.sample.todo.client.actions.LoadUsers) {
                    return new Agreement(true);
                }
View Full Code Here

    @Inject
    public BufferPoolStoreAdapter(final BufferPoolStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(BufferPoolStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.shared.subsys.io.bufferpool.AddBufferPool) {
                    return new Agreement(true);
                }
View Full Code Here

    @Inject
    public WorkerStoreAdapter(final WorkerStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(WorkerStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.shared.subsys.io.worker.AddWorker) {
                    return new Agreement(true);
                }
View Full Code Here

    @Inject
    public LogStoreAdapter(final LogStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(LogStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.ReadLogFiles) {
                    return new Agreement(true);
                }
View Full Code Here

    @Inject
    public BatchStoreAdapter(final BatchStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(BatchStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.shared.subsys.batch.store.InitBatch) {
                    return new Agreement(true);
                }
View Full Code Here

    @Inject
    public ServerStoreAdapter(final ServerStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(ServerStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.v3.stores.domain.actions.HostSelection) {
                    return new Agreement(true, org.jboss.as.console.client.v3.stores.domain.HostStore.class);
                }
View Full Code Here

    @Inject
    public HostStoreAdapter(final HostStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(HostStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.v3.stores.domain.actions.RefreshServer) {
                    return new Agreement(true);
                }
View Full Code Here

    private final Multimap<String, String> deployments;

    public DeploymentStore(final Dispatcher dispatcher) {
        deployments = HashMultimap.create();

        dispatcher.register(DeploymentStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                Agreement agreement = Agreement.NONE;
                if (action instanceof DeployAction || action instanceof UndeployAction || action instanceof StopServerAction) {
                    agreement = new Agreement(true);
View Full Code Here

    private final Set<String> runningServers = new HashSet<>();

    public HostStore(final Dispatcher dispatcher) {

        dispatcher.register(HostStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                Agreement agreement = Agreement.NONE;
                if (action instanceof StartServerAction) {
                    agreement = new Agreement(true);
View Full Code Here

TOP

Related Classes of org.jboss.gwt.circuit.StoreCallback

Copyright © 2018 www.massapicom. 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.