public interface OwGlobalRegistryContext
Registry handler for global instance of factories, manager, etc. instances which are single in application/session context.
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
Modifier and Type | Method and Description |
---|---|
<T> T |
getRegisteredInterface(Class<T> typeClass)
Return the cached object, if any is contained.
|
void |
registerInterface(Class<?> typeClass,
Object object)
Register some specific object for a defined class/interface.
|
<T> T |
unregisterInterface(Class<T> typeClass)
Unregister the object for given class/interface.
|
void registerInterface(Class<?> typeClass, Object object)
Will not check if the provided object is from that type.
typeClass
- Classobject
- Object specific to that provided classgetRegisteredInterface(Class)
<T> T getRegisteredInterface(Class<T> typeClass)
Can throw a ClassCastException if the registered object is not an instance of the requested class.
typeClass
- Class of the object to return<T> T unregisterInterface(Class<T> typeClass)
Attention: If any clean or release must be executed first, it must be done before calling the unregister method.
typeClass
- Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.