Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gitlab-playground-innovation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagabhushan
gitlab-playground-innovation
Commits
9e9eb2d2
Commit
9e9eb2d2
authored
Apr 17, 2019
by
mkodavati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed playground application
parent
fe909bcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
68 deletions
+0
-68
PlaygroundApplication.java
...timetrik/playground/innovation/PlaygroundApplication.java
+0
-68
No files found.
src/main/java/com/altimetrik/playground/innovation/PlaygroundApplication.java
deleted
100644 → 0
View file @
fe909bcc
/*******************************************************************************
* Copyright (C) Altimetrik 2018. All rights reserved.
*
* This software is the confidential and proprietary information
* of Altimetrik. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms and conditions
* entered into with Altimetrik.
******************************************************************************/
package
com
.
altimetrik
.
playground
.
innovation
;
import
java.io.File
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.PropertySource
;
import
org.togglz.core.manager.EnumBasedFeatureProvider
;
import
org.togglz.core.repository.StateRepository
;
import
org.togglz.core.repository.file.FileBasedStateRepository
;
import
org.togglz.core.spi.FeatureProvider
;
import
org.togglz.core.user.NoOpUserProvider
;
import
org.togglz.core.user.UserProvider
;
import
com.altimetrik.playground.innovation.feature.Features
;
import
com.altimetrik.playground.innovation.properties.ErrorProperties
;
import
com.altimetrik.playground.innovation.properties.ServiceProperties
;
import
com.google.gson.Gson
;
import
com.google.gson.GsonBuilder
;
@ServletComponentScan
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableHystrixDashboard
@PropertySource
(
value
=
{
"classpath:db-config.properties"
,
"classpath:service.properties"
})
@EnableConfigurationProperties
({
ServiceProperties
.
class
,
ErrorProperties
.
class
})
public
class
PlaygroundApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
PlaygroundApplication
.
class
,
args
);
}
@Bean
public
FeatureProvider
featureProvider
()
{
return
new
EnumBasedFeatureProvider
(
Features
.
class
);
}
@Bean
public
UserProvider
userProvider
()
{
return
new
NoOpUserProvider
();
}
@Bean
public
StateRepository
getStateRepository
()
{
return
new
FileBasedStateRepository
(
new
File
(
"src/main/resources/features.properties"
),
10_000
);
}
@Bean
public
Gson
gson
()
{
return
new
GsonBuilder
().
serializeNulls
().
create
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment