com.wewebu.ow.server.ao
Class OwDefaultRegistry

java.lang.Object
  extended by com.wewebu.ow.server.ao.OwDefaultRegistry
All Implemented Interfaces:
OwAOManagerRegistry

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

Since:
3.2.0.0

Constructor Summary
OwDefaultRegistry()
           
 
Method Summary
 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()).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwDefaultRegistry

public OwDefaultRegistry()
Method Detail

registerManager

public void registerManager(OwAOManager manager_p)
                     throws OwInvalidOperationException
Parameters:
manager_p - the manager to register
Throws:
OwInvalidOperationException - if another manager is already registered for the given managers application object type (see OwAOManager.getManagedType()).

replaceManager

public void replaceManager(OwAOManager manager_p)
                    throws OwInvalidOperationException
Replaces an existing manager with the given manager of the same type (see OwAOManager.getManagedType()).

Parameters:
manager_p - the new manager
Throws:
OwInvalidOperationException

getManager

public OwAOManager getManager(int type_p)
                       throws OwInvalidOperationException
Specified by:
getManager in interface OwAOManagerRegistry
Parameters:
type_p -
Returns:
the registered manager for the given object type
Throws:
OwInvalidOperationException - if no manager is registered for the given application object type


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.