/** * A test service interface. */ @Service public interface ITestService { /** * A test method. */ public IFuture<Void> testMethod(); }
/** * An example interface that extends another. */ @Service public interface IExtendedService extends IBasicService { /** * Example method returning some string value. * @return Some extended info. */ public IFuture<String> getExtendedInfo(); }
@Service public interface ILotteryService { public ISubscriptionIntermediateFuture<String> subscribeToLottery(); public IFuture<Boolean> claimItem(String item); }
/** * */ @Service public interface IRuleService extends IRuleEngineService, IRulebaseService { }
/** * */ @Service public interface IRuleService extends IRuleEngineService, IRulebaseService { }
@Service public static class MyAService implements IAService { public IFuture test() { return new Future("a"); } } }
/** * Service for registries that allows subscribing * and following the state of the registry. */ @Service public interface IRegistrySynchronizationService { /** * Subscribe to change events of the registry. */ public ISubscriptionIntermediateFuture<IRegistryEvent> subscribeToEvents(); }
@Service public interface IStampService { public IFuture<Void> stamp(IComponentIdentifier wp, String text); }
/** * An example service interface. */ @Service public interface IExampleService { /** * An example method. */ public IFuture<String> getInfo(); }
/** * Chat service implementation. */ @Service public class ChatServiceD4 extends ChatServiceD3 { }
/** * Email fetching service. */ @Service public interface IEmailFetcherService { /** * Fetch emails for a subscription. * @param sub The subscription. * @return The emails. */ public IIntermediateFuture<Email> fetchEmails(SubscriptionInfo sub); }
/** * An example service interface. */ @Service public interface IExampleService { /** * An example method. */ public IFuture<String> getInfo(); }
@Service public interface ITestService { /** * */ public ISubscriptionIntermediateFuture<String> test(); }
/** * Interface of a news service. */ @Service public interface INewsService { /** * Subscribe to the newsprovider. */ public ISubscriptionIntermediateFuture<String> subscribeToNews(); }
/** * Implementation of a service. */ @Service public class ServiceCallService implements IServiceCallService { /** * Dummy method for service call benchmark. */ public IFuture<Void> call() { return IFuture.DONE; } }
/** * Simple print hello service. */ @Service public class PrintHelloService implements IPrintHelloService { /** * Print hello. */ public IFuture<Void> printHello() { System.out.println("Hello"); return IFuture.DONE; } }
/** * Example service interface. Uses the @Service annotation * to ensure that this service interface will be offered by * the component, i.e. can be found via search even if it * is not the top-level interface. */ @Service public interface IBasicService { /** * Example method returning some string value. * @return Some basic info. */ public IFuture<String> getBasicInfo(); }
/** * Implementation of a service. */ @Service public class RawServiceCallService extends BasicService implements IServiceCallService { /** * Basic service constructor. */ public RawServiceCallService(IComponentIdentifier providerid) { super(providerid, IServiceCallService.class, null); } /** * Dummy method for service call benchmark. */ public IFuture<Void> call() { return IFuture.DONE; } }
/** * */ @Service public interface IRuleEngineService { /** * Add an external event to the rule engine. * It will process the event and fire rules * accordingly. * @param event The event. */ public IIntermediateFuture<RuleEvent> addEvent(IEvent event); /** * Subscribe to rule executions. */ public ISubscriptionIntermediateFuture<RuleEvent> subscribeToEngine(); }
/** * */ @Service public interface IRuleEngineService { /** * Add an external event to the rule engine. * It will process the event and fire rules * accordingly. * @param event The event. */ public IIntermediateFuture<RuleEvent> addEvent(IEvent event); /** * Subscribe to rule executions. */ public ISubscriptionIntermediateFuture<RuleEvent> subscribeToEngine(); }