Skip to content

Commit

Permalink
Deprecate main entry point classes of Karyon2
Browse files Browse the repository at this point in the history
  • Loading branch information
elandau committed Jul 21, 2016
1 parent 076c6b1 commit 290f357
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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@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. Use governator or other DI framework directly
*/
@Deprecated
public class ShutdownModule extends AbstractModule {

public static final int DEFAULT_PORT = 7002;
Expand Down

0 comments on commit 290f357

Please sign in to comment.