Created
March 26, 2013 18:37
-
-
Save curtisallen/5247944 to your computer and use it in GitHub Desktop.
This file contains 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
package com.mis.rex.rexdev; | |
import com.mis.rex.rexdev.view.SportTweet; | |
import com.mis.rex.rexdev.view.SportTweetMetaData; | |
import org.tcrex.data.Rex; | |
import org.tcrex.data.RexFactory; | |
import org.tcrex.data.event.RexPublisher; | |
import org.tcrex.data.event.impl.RecordingStubPublisher; | |
import org.tcrex.data.loaders.BeanDataLoader; | |
/** | |
* Hello world! | |
* | |
*/ | |
public class App | |
{ | |
private static RexFactory rexFactory = new RexFactory(); | |
private static RexPublisher publisher = new RecordingStubPublisher(); | |
private static BeanDataLoader<SportTweet, SportTweetMetaData> loader = new BeanDataLoader<SportTweet, SportTweetMetaData>(); | |
private static Rex<SportTweet, SportTweetMetaData> rex = null; | |
private static final String appId = "8675309"; | |
public static void main( String[] args ) | |
{ | |
System.out.println( "Hello World!" ); | |
System.out.println(rexFactory.getAppId()); | |
rexFactory.setPublisher(publisher); | |
rex = rexFactory.newRex("SportTweets", SportTweet.class, SportTweetMetaData.class, appId); | |
loader.load(rex); | |
//rex. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment