org.jowidgets.cap.service.hibernate.api
Interface ICancelServicesDecoratorProviderBuilder


public interface ICancelServicesDecoratorProviderBuilder


Field Summary
static int DEFAULT_ORDER
           
 
Method Summary
 ICancelServicesDecoratorProviderBuilder addServices(Class<?>... services)
          Adds a service(s) to the list of services to decorate
 org.jowidgets.service.api.IServicesDecoratorProvider build()
           
 ICancelServicesDecoratorProviderBuilder setOrder(int order)
          Sets the order for the service decoration.
 ICancelServicesDecoratorProviderBuilder setServices(Collection<? extends Class<?>> services)
          Sets the services that should be decorated, so that the HibernateSession will be canceled when execution callback was canceled.
 

Field Detail

DEFAULT_ORDER

static final int DEFAULT_ORDER
See Also:
Constant Field Values
Method Detail

setServices

ICancelServicesDecoratorProviderBuilder setServices(Collection<? extends Class<?>> services)
Sets the services that should be decorated, so that the HibernateSession will be canceled when execution callback was canceled. By default, the following services are set: ICreatorService.class, IReaderService.class, IRefreshService.class, IUpdaterService.class, IExecutorService.class, IDeleterService.class Remark: Invoking this method will override the default. If services should be added to the default list, use the method addServices(Class...) instead.

Parameters:
services - The services (must be interfaces) that should be decorated
Returns:
This builder

addServices

ICancelServicesDecoratorProviderBuilder addServices(Class<?>... services)
Adds a service(s) to the list of services to decorate

Parameters:
services - The service(s) to add, must not be null
Returns:
This builder

setOrder

ICancelServicesDecoratorProviderBuilder setOrder(int order)
Sets the order for the service decoration. Decorators with higher order will be invoked later. By default, the DEFAULT_ORDER will be used

Parameters:
order - The order to set.
Returns:
This builder

build

org.jowidgets.service.api.IServicesDecoratorProvider build()
Returns:
A new IServicesDecoratorProvider


Copyright © 2012. All Rights Reserved.