Skip to content

Commit

Permalink
Merge pull request #346 from elandau/deprecate
Browse files Browse the repository at this point in the history
Deprecate main entry point classes of Karyon2
  • Loading branch information
elandau committed Jul 21, 2016
2 parents 076c6b1 + 0e8b16c commit 697347a
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

/**
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
abstract class AbstractKaryonServer implements KaryonServer {

protected final BootstrapModule[] bootstrapModules;
Expand Down
2 changes: 2 additions & 0 deletions karyon2-governator/src/main/java/netflix/karyon/Karyon.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
* {@link Bootstrap} annotations.
*
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
public final class Karyon {

private Karyon() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@

/**
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Bootstrap(bootstrap = KaryonBootstrapModule.class)
@Deprecated
public @interface KaryonBootstrap {

String name();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
* A guice module that defines all bindings required by karyon. Applications must use this to bootstrap karyon.
*
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
public class KaryonBootstrapModule implements BootstrapModule {

private final Class<? extends HealthCheckHandler> healthcheckHandlerClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
* If you are bootstrapping karyon programmatically, it is better to use {@code Karyon} directly.
*
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
public class KaryonRunner {

private static final Logger logger = LoggerFactory.getLogger(KaryonRunner.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* A logical abstraction to manage the lifecycle of a karyon based application.
* This does not define any contracts of handling and processing requests, those should all be defined by means of
* modules.
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
public interface KaryonServer {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* An implementation of {@link KaryonServer} which wraps an existing {@link KaryonServer}.
*
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
class KaryonServerBackedServer implements KaryonServer {

private final AbstractKaryonServer delegate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

/**
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
class MainClassBasedServer extends AbstractKaryonServer {

private static final Logger logger = LoggerFactory.getLogger(MainClassBasedServer.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
* An implementation of {@link KaryonServer} which wraps an RxNetty's server.
*
* @author Nitesh Kant
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
class RxNettyServerBackedServer extends MainClassBasedServer {

private static final Logger logger = LoggerFactory.getLogger(RxNettyServerBackedServer.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
* either before or after the container shutdown.
*
* @author Tomasz Bak
* @deprecated 2016-07-20 Karyon2 no longer supported. See https://github.com/Netflix/karyon/issues/347 for more info
*/
@Deprecated
public class ShutdownModule extends AbstractModule {

public static final int DEFAULT_PORT = 7002;
Expand Down

0 comments on commit 697347a

Please sign in to comment.