package com.ds.listing.control;

import com.ds.listing.properties.UserProperties;
import com.ds.listing.properties.eBayAuth;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.Singleton;
import javax.ejb.Startup;

/**
 * Startup
 * Created by bithack on 3/31/15.
 */
@Singleton
@Startup
public class runListingApp {
    @PostConstruct
    private void startup() {
        System.out.println("Setting up server");
        UserProperties.getInstance();
        eBayAuth.getInstance().getApiContenxt();
        System.out.println("Server Started");

    }



    @PreDestroy
    private void shutdown(){

    }
}

@@ -247,16 +247,44 @@
 Startup;
+%0Aimport javax.inject.Inject;
 %0A%0A/**%0A *
@@ -379,16 +379,111 @@
 ngApp %7B%0A
+    @Inject%0A    private UserProperties props;%0A    %0A    @Inject%0A    private eBayAuth auth;%0A    %0A
     @Pos
@@ -583,84 +583,101 @@
     
-UserProperties.getInstance();%0A        eBayAuth.getInstance().getApiContenxt(
+System.out.println(props.getValue(%22ebaytoken%22));%0A        System.out.println(auth.getVersion()
 );%0A 

Update runListingApp.java