Package com.blitline.image.example

Source Code of com.blitline.image.example.ExampleLauncher

package com.blitline.image.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.blitline.image.BlitlinePostback;
import com.blitline.image.spring.annotation.EnableBlitlineImageService;
import com.blitline.image.spring.postback.BlitlinePostbackHandler;

@Configuration
@ComponentScan
@EnableAutoConfiguration
@EnableBlitlineImageService
public class ExampleLauncher {
  public static void main(String[] args) {
    SpringApplication.run(ExampleLauncher.class, args);
  }

  @Bean
  public BlitlinePostbackHandler blitlinePostbackHandler() {
    return new BlitlinePostbackHandler() {
      @Override
      public void handlePostback(BlitlinePostback postback) {
        System.out.println(postback);
      }
    };
  }
}
TOP

Related Classes of com.blitline.image.example.ExampleLauncher

TOP
Copyright © 2018 www.massapi.com. 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.