This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @StyleBinding | |
| @Retention(RetentionPolicy.RUNTIME) | |
| public @interface Admin { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @StyleBinding | |
| @Retention(RetentionPolicy.RUNTIME) | |
| public @interface Admin { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Templated | |
| public class StyleBoundTemplate extends Composite { | |
| @Inject @AutoBound DataBinder<TestModel> dataBinder; | |
| @Inject @Bound @AdminBinding @DataField private Label testA; | |
| @Inject @Bound @TestBinding @DataField private Label testB; | |
| public Label getTestA() { | |
| return testA; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String[] array = new String[] { "a", "b", "c" }; | |
| List<String> stringList = new ArrayList<String>(); | |
| Collections.addAll(stringList, array); | |
| Foo foo = new Foo(); | |
| new MyInterfaceImpl().doSomething("foo", foo); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Timed(type = TimerType.REPEATING, interval = 1, timeUnit = TimeUnit.SECONDS) | |
| private void updateTime() { | |
| timeWidget.setTime(System.currentTimeMillis); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Timed(type = TimerType.REPEATING, interval = 1, timeUnit = TimeUnit.SECONDS) | |
| private void updateTime() { | |
| timeWidget.setTime(System.currentTimeMillis); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final AsyncBeanQuery beanQuery = new AsyncBeanQuery(); | |
| final AsyncBeanFuture<FoobieScopedBean> foobieScopedFuture1 = beanQuery.load(FoobieScopedBean.class); | |
| final AsyncBeanFuture<FoobieScopedBean> foobieScopedFuture2 = beanQuery.load(FoobieScopedBean.class); | |
| final AsyncBeanFuture<FoobieScopedOverriddenBean> foobieScopedOverriddenFuture1 | |
| = beanQuery.load(FoobieScopedOverriddenBean.class); | |
| final AsyncBeanFuture<FoobieScopedOverriddenBean> foobieScopedOverriddenFuture2 | |
| = beanQuery.load(FoobieScopedOverriddenBean.class); | |
| beanQuery.query(new Runnable() { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final AsyncBeanQuery beanQuery = new AsyncBeanQuery(); | |
| final AsyncBeanFuture<FoobieScopedBean> foobieScopedFuture1 = beanQuery.load(FoobieScopedBean.class); | |
| final AsyncBeanFuture<FoobieScopedBean> foobieScopedFuture2 = beanQuery.load(FoobieScopedBean.class); | |
| final AsyncBeanFuture<FoobieScopedOverriddenBean> foobieScopedOverriddenFuture1 | |
| = beanQuery.load(FoobieScopedOverriddenBean.class); | |
| final AsyncBeanFuture<FoobieScopedOverriddenBean> foobieScopedOverriddenFuture2 | |
| = beanQuery.load(FoobieScopedOverriddenBean.class); | |
| beanQuery.query(new Runnable() { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| errai.bus.enable_clustering=true | |
| errai.bus.clustering_provider=org.jboss.errai.bus.server.cluster.jgroups.JGroupsClusteringProvider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author Mike Brock | |
| */ | |
| public enum ClusterCommands { | |
| /** | |
| * The <tt>WhoHandles</tt> verb is a broadcast message to the cluster that asks all buses who is | |
| * responsible for handling the specified session. | |
| */ | |
| WhoHandles, |