public class ClientDtoManagerServiceImpl extends java.lang.Object implements ClientDtoManagerService
Constructor and Description |
---|
ClientDtoManagerServiceImpl(ProxyIdGenerator proxyIdGenerator,
DtoInformationService dtoInformationService) |
Modifier and Type | Method and Description |
---|---|
<X extends Dto> |
deepClone(X dto)
Creates a propper clone.
|
<X extends Dto> |
detachDto(X dto)
Detaches Dtos from the manager.
|
<X extends Dto> |
detachDtos(java.util.Collection<X> dtos)
Detaches Dtos from the manager.
|
<X> X |
getProperty(Dto proxy,
ValueProvider valueProvider) |
<X extends Dto> |
newProxy(X dto)
Can for example be used to "clone" dtos.
|
void |
onDtoChange(Dto dto,
DtoListener listener) |
void |
onDtoChange(DtoListener listener) |
<X extends Dto> |
registerDto(X dto)
Registers a dto and returns a proxied object.
|
<X extends Dto> |
registerDto(X dto,
java.util.List<Dto> fireAddList) |
void |
registerDtoContainer(java.util.Collection<DtoContainer> containers) |
void |
registerDtoContainer(DtoContainer container) |
<X extends Dto> |
registerDtos(java.util.Collection<X> dtos)
Registers a collections of dtos and returns proxied objects.
|
void |
removeChangeListener(Dto dto,
DtoListener listener) |
void |
removeDtoChangeListener(DtoListener listener) |
<X> void |
setProperty(Dto proxy,
ValueProvider vp,
X value) |
<X extends Dto> |
unproxy(java.util.Collection<X> proxies) |
<X extends Dto> |
unproxy(X proxy)
Turns a proxy back into a dto
|
public ClientDtoManagerServiceImpl(ProxyIdGenerator proxyIdGenerator, DtoInformationService dtoInformationService)
public <X extends Dto> X registerDto(X dto)
ClientDtoManagerService
registerDto
in interface ClientDtoManagerService
public void registerDtoContainer(DtoContainer container)
registerDtoContainer
in interface ClientDtoManagerService
public void registerDtoContainer(java.util.Collection<DtoContainer> containers)
registerDtoContainer
in interface ClientDtoManagerService
public <X extends Dto> X newProxy(X dto)
ClientDtoManagerService
newProxy
in interface ClientDtoManagerService
public <X extends Dto> java.util.Collection<X> registerDtos(java.util.Collection<X> dtos)
ClientDtoManagerService
registerDtos
in interface ClientDtoManagerService
public <X> X getProperty(Dto proxy, ValueProvider valueProvider)
getProperty
in interface ClientDtoManagerService
public <X> void setProperty(Dto proxy, ValueProvider vp, X value)
setProperty
in interface ClientDtoManagerService
public <X extends Dto> void detachDto(X dto)
ClientDtoManagerService
As a consequence all listeners on that particular dto are detached.
If properties for a specific dto are requested
detachDto
in interface ClientDtoManagerService
public <X extends Dto> void detachDtos(java.util.Collection<X> dtos)
ClientDtoManagerService
detachDtos
in interface ClientDtoManagerService
ClientDtoManagerService.detachDto(Dto)
public void onDtoChange(Dto dto, DtoListener listener)
onDtoChange
in interface ClientDtoManagerService
public void onDtoChange(DtoListener listener)
onDtoChange
in interface ClientDtoManagerService
public void removeChangeListener(Dto dto, DtoListener listener)
removeChangeListener
in interface ClientDtoManagerService
public void removeDtoChangeListener(DtoListener listener)
removeDtoChangeListener
in interface ClientDtoManagerService
public <X extends Dto> X deepClone(X dto)
ClientDtoManagerService
deepClone
in interface ClientDtoManagerService
public <X extends Dto> X unproxy(X proxy)
ClientDtoManagerService
unproxy
in interface ClientDtoManagerService
public <X extends Dto> java.util.Collection<X> unproxy(java.util.Collection<X> proxies)
unproxy
in interface ClientDtoManagerService