public class OwDefaultRegistry extends Object implements OwAOManagerRegistry
Standard application object managers registry implementation. Does not allow duplicate managers of the same type , allows the replacement of already registered managers.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwDefaultRegistry() |
Modifier and Type | Method and Description |
---|---|
OwAOManager |
getManager(int type_p) |
void |
registerManager(OwAOManager manager_p) |
void |
replaceManager(OwAOManager manager_p)
Replaces an existing manager with the given manager of the same type (see
OwAOManager.getManagedType() ). |
public void registerManager(OwAOManager manager_p) throws OwInvalidOperationException
manager_p
- the manager to registerOwInvalidOperationException
- if another manager is already registered for the
given managers application object type (see OwAOManager.getManagedType()
).public void replaceManager(OwAOManager manager_p) throws OwInvalidOperationException
OwAOManager.getManagedType()
).manager_p
- the new managerOwInvalidOperationException
public OwAOManager getManager(int type_p) throws OwInvalidOperationException
getManager
in interface OwAOManagerRegistry
type_p
- OwInvalidOperationException
- if no manager is registered for the given
application object typeCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.