Package org.apache.commons.discovery

Examples of org.apache.commons.discovery.ServiceDiscovery


     * Attempts to resolve the given URI to be associated with a TagLibrary
     * otherwise null is returned to indicate no tag library could be found
     * so that the namespace URI should be treated as just vanilla XML.
     */   
    public TagLibrary resolveTagLibrary(String uri) {
        ServiceDiscovery discovery = getServiceDiscovery();
        String name = uri;
        if ( uri.startsWith( "jelly:" ) ) {
            name = "jelly." + uri.substring(6);
        }
       
        log.info( "Looking up service name: " + name );
       
        ServiceInfo[] infoArray = discovery.findServices(name);
       
        if ( infoArray != null && infoArray.length > 0 ) {
            for (int i = 0; i < infoArray.length; i++ ) {
                ServiceInfo info = infoArray[i];
                try {               
View Full Code Here

TOP

Related Classes of org.apache.commons.discovery.ServiceDiscovery

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.