/** * @author Arun Gupta */ @Alternative public class FancyGreeting implements Greeting { @Override public String greet(String name) { return "Nice to meet you, hello" + name; } }
/** * @author Arun Gupta */ @Alternative public class SimpleGreeting implements Greeting { @Override public String greet(String name) { return "Hello " + name; } }
/** * @author Arun Gupta * @author Radim Hanus */ @Alternative public class SimpleGreeting implements Greeting { @Override public String greet(String name) { return "Hello " + name; } }
/** * @author Arun Gupta * @author Radim Hanus */ @Priority(1000) @Alternative public class FancyGreeting implements Greeting { @Override public String greet(String name) { return "Nice to meet you, hello" + name; } }
/** * @author Radim Hanus */ @Priority(2000) @Alternative public class PriorityGreeting implements Greeting { @Override public String greet(String name) { return "Hey " + name + " I should be selected since I've got the highest priority !"; } }
@Alternative public class WorkbenchUpnpConfiguration extends ManagedUpnpServiceConfiguration {
@Alternative public class MockProtocolFactory implements ProtocolFactory {
@Alternative public class PullGENAEventProcessorImpl extends GENAEventProcessorImpl {
@Produces @Alternative public Greeting getGreeting() { return new SimpleGreeting(); } }
@Alternative public class RecoveringSOAPActionProcessorImpl extends PullSOAPActionProcessorImpl {
@Alternative public class RecoveringGENAEventProcessorImpl extends PullGENAEventProcessorImpl {
@Alternative public class MockUpnpServiceConfiguration extends DefaultUpnpServiceConfiguration {
@Alternative public class MockRouter implements Router {
@Alternative public class MockUpnpService implements UpnpService {
@Alternative public class UpnpServiceImpl implements UpnpService {
@Alternative public class PullSOAPActionProcessorImpl extends SOAPActionProcessorImpl {
@Alternative public class DefaultUpnpServiceConfiguration implements UpnpServiceConfiguration {
/** * When network transport initialization fails, throw exception and * exit application instead of logging only warnings. * * @author Christian Bauer */ @Alternative @Specializes public class WorkbenchRouter extends RouterImpl { public WorkbenchRouter() { } @Inject public WorkbenchRouter(UpnpServiceConfiguration configuration, ProtocolFactory protocolFactory) { super(configuration, protocolFactory); } @Override public void handleStartFailure(InitializationException ex) { throw ex; } }
@Alternative public class MockProtocolFactory implements ProtocolFactory {
@Alternative public class PullGENAEventProcessorImpl extends GENAEventProcessorImpl {