Package ariba.util.core

Examples of ariba.util.core.ClassExtensionRegistry


        ChoiceSource classExtension)
    {
        // Be thread-safe in case registration occurs in threads due to dynamic loading
        synchronized (ChoiceSource.class) {
            if (_registry == null) {
                _registry = new ClassExtensionRegistry();
            }

            _registry.registerClassExtension(targetObjectClass, classExtension);
        }
    }
View Full Code Here


        Register for the thread local class extension registry.
        @aribaapi private
    */
    public static void registerThreadLocalClassExtension (Class receiverClass, OrderedList orderedListClassExtension)
    {
        ClassExtensionRegistry tlRegistry =
            (ClassExtensionRegistry)TLClassExtensionRegistry.get();
        if (tlRegistry == null) {
                // Make sure this registry is not added to the global
                // list of registries.
            tlRegistry = new ClassExtensionRegistry(false);
            TLClassExtensionRegistry.set(tlRegistry);
        }
        tlRegistry.registerClassExtension(receiverClass, orderedListClassExtension);
    }
View Full Code Here

        Clear the thread local class extension registry.
        @aribaapi private
    */
    public static void clearThreadLocalClassExtensionRegistry ()
    {
        ClassExtensionRegistry tlRegistry =
            (ClassExtensionRegistry)TLClassExtensionRegistry.get();
        TLClassExtensionRegistry.set(null);
    }
View Full Code Here

    /**
        Query the thread local registry.
    */
    private static OrderedList getFromThreadLocalRegistry (Object receiver)
    {
        ClassExtensionRegistry registry =
            (ClassExtensionRegistry)TLClassExtensionRegistry.get();
        if (registry == null) {
            return null;
        }
        return (OrderedList)registry.get(receiver);
    }
View Full Code Here

TOP

Related Classes of ariba.util.core.ClassExtensionRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.