@AstrixApplication( exportsRemoteServicesFor = TradingServiceApiProvider.class, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class TradingApplicationDescriptor { }
@SuppressWarnings("deprecation") private static Class<?>[] getExportedRemoteServiceEndpoints(AstrixApplication astrixApplication, Class<?> applicationDescriptorHolder) { if (astrixApplication.apiDescriptors().length > 0 && astrixApplication.exportsRemoteServicesFor().length > 0) { throw new IllegalArgumentException("Illegal applicationDescriptor. An application" + " descriptor must not define both a 'apiDescriptors' property and a 'exportsRemoteServicesFor'" + " property. applicationDescriptorClass=" + applicationDescriptorHolder.getName()); } if (astrixApplication.exportsRemoteServicesFor().length > 0) { return astrixApplication.exportsRemoteServicesFor(); } if (astrixApplication.apiDescriptors().length > 0) { return astrixApplication.apiDescriptors(); } throw new IllegalArgumentException("Illegal applicationDescriptor. An application" + " descriptor must define the 'exportsRemoteServicesFor' property"); }
@SuppressWarnings("deprecation") private static String getDefaultServiceComponent( AstrixApplication astrixApplication, Class<?> applicationDescriptorHolder) { if (astrixApplication.defaultServiceComponent().isEmpty() && astrixApplication.component().isEmpty()) { throw new IllegalArgumentException("Illegal applicationDescriptor. An application" + " descriptor must not define both a 'component' property and a 'defaultComponentName'" + " property. applicationDescriptorClass=" + applicationDescriptorHolder.getName()); } if (!astrixApplication.defaultServiceComponent().isEmpty()) { return astrixApplication.defaultServiceComponent(); } if (!astrixApplication.component().isEmpty()) { return astrixApplication.component(); } throw new IllegalArgumentException("Illegal applicationDescriptor. An application" + " descriptor must define the 'defaultComponentName' property"); }
@AstrixApplication( exportsRemoteServicesFor = { LunchServiceProvider.class }, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class LunchApplicationDescriptor { }
@AstrixApplication( exportsRemoteServicesFor = { LunchServiceProvider.class, LunchFeederApiDescriptor.class }, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class LunchApplicationDescriptor { }
@AstrixApplication( exportsRemoteServicesFor = { LunchGradeServiceProvider.class }, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class LunchGradeApplicationDescriptor { }
@AstrixApplication( exportsRemoteServicesFor = { LunchGradeServiceProvider.class }, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class LunchGradeApplicationDescriptor { }
@AstrixApplication( exportsRemoteServicesFor = { LunchServiceProvider.class }, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class LunchApplicationDescriptor { }
/** * The service registry api uses Astrix-remoting to export its service. Note that * it doesn't use the service registry to bind to the providers, but rather uses a * SpaceLocator and the space-name provided here. * * @author Elias Lindholm (elilin) * */ @AstrixApplication( exportsRemoteServicesFor = { AstrixServiceRegistryServiceProvider.class }, defaultServiceComponent = AstrixServiceComponentNames.GS_REMOTING ) public class AstrixServiceRegistryApplicationDescriptor { }