Package org.apache.felix.ipojo

Examples of org.apache.felix.ipojo.HandlerFactory


     * @param name : class name of the handler to find
     * @return : the handler, or null if not found
     */
    public CompositeHandler getCompositeHandler(String name) {
        for (int i = 0; i < m_handlers.length; i++) {
            HandlerFactory fact = (HandlerFactory) m_handlers[i].getFactory();
            if (fact.getHandlerName().equals(name) || name.equals(fact.getComponentDescription().getClassName())) {
                return (CompositeHandler) m_handlers[i].getHandler();
            }
        }
        return null;
    }
View Full Code Here


    /**
     * Creates a handler description.
     * @param handler the handler.
     */
    public HandlerDescription(Handler handler) {
        HandlerFactory factory = (HandlerFactory) handler.getHandlerManager().getFactory();
        m_handlerName = factory.getHandlerName();
        m_handler = handler;
    }
View Full Code Here

     * @param name : class name of the handler to find
     * @return : the handler, or null if not found
     */
    public CompositeHandler getCompositeHandler(String name) {
        for (int i = 0; i < m_handlers.length; i++) {
            HandlerFactory fact = (HandlerFactory) m_handlers[i].getFactory();
            if (fact.getHandlerName().equals(name) || fact.getComponentDescription().getClassName().equals(name)) {
                return (CompositeHandler) m_handlers[i].getHandler();
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.HandlerFactory

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.