Package org.jboss.gwt.circuit

Examples of org.jboss.gwt.circuit.StoreCallback


    @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 PerspectiveStoreAdapter(final PerspectiveStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

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

    @Inject
    public SubsystemStoreAdapter(final SubsystemStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(SubsystemStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.as.console.client.shared.model.LoadProfile) {
                    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 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 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

    @Inject
    public ShoesStoreAdapter(final ShoesStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(ShoesStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.gwt.circuit.sample.wardrobe.actions.Dress) {
                    return new Agreement(true, org.jboss.gwt.circuit.sample.wardrobe.stores.SocksStore.class, org.jboss.gwt.circuit.sample.wardrobe.stores.TrousersStore.class);
                }
View Full Code Here

    @Inject
    public SocksStoreAdapter(final SocksStore delegate, final Dispatcher dispatcher) {
        this.delegate = delegate;

        dispatcher.register(SocksStore.class, new StoreCallback() {
            @Override
            public Agreement voteFor(final Action action) {
                if (action instanceof org.jboss.gwt.circuit.sample.wardrobe.actions.Dress) {
                    return 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.