/** * Get the service connector object associated with the only service bound to the app. * * This is equivalent to the <cloud:service/> element. * * @return service connector object * @throws CloudException if there are either 0 or more than 1 services. */ public Object service() { return service(Object.class); }
/** * Get the service connector object for the specified service. * * This is equivalent to the <cloud:service service-id="serviceId"/> element. * * @return service connector object * @throws CloudException if the specified service doesn't exist */ public Object service(String serviceId) { return service(serviceId, Object.class); }