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