T
- Should be a sub class of RegistryBean
classpublic interface Manager<T extends RegistryBean>
Modifier and Type | Method and Description |
---|---|
T |
create()
Creates a new bean instance.
|
void |
delete(java.util.Collection<RegistryBean> beans)
Delete a
Collection of beans from the registry. |
void |
delete(T bean)
Delete a bean from the registry.
|
T |
insert(T pBean)
Inserts a bean, which has previously been created using
create() ,
into the bean pool. |
T |
read(java.lang.String id)
Reads from the registry a bean having a given id.
|
void |
update(java.util.Collection<RegistryBean> pBean)
Updates a
Collection of beans. |
void |
update(T pBean)
Updates the bean in the pool by replacing the existing implementation
with this one.
|
T create() throws ManagerException
insert(RegistryBean)
to add the edited bean to the pool later
on.ManagerException
- If an error occurs while creating the bean instanceT insert(T pBean) throws ManagerException
create()
,
into the bean pool. The bean pool will ensure, that the bean is created
in the database later on.pBean
- The bean, which has been edited. The user must not
use the bean later on. Instead, he shall replace it with the
copy, that the method returns.ManagerException
- If an error occurs while inserting the bean instancevoid update(T pBean) throws ManagerException
pBean
- The bean, which has to be updated.ManagerException
- If an error occurs while updating the bean instancevoid update(java.util.Collection<RegistryBean> pBean) throws ManagerException
Collection
of beans.pBean
- The Collection
of RegistryBean
s to updateManagerException
- If an error occurs in updating the given collection of beansT read(java.lang.String id) throws ManagerException
id
- Registry id.ManagerException
- If an error occurs while trying to read the bean objectvoid delete(T bean) throws ManagerException
bean
- The bean object to deleteManagerException
- If an error occurs while trying to delete the bean objectvoid delete(java.util.Collection<RegistryBean> beans) throws ManagerException
Collection
of beans from the registry.beans
- The Collection
of RegistryBean
s to deleteManagerException
- If an error occurs while trying to delete a collection of bean objects