src/plugins/rayo/src/java/com/sun/voip/server/ModuleLoader.java
/*
     * The manifest must have an attribute with the name Bridge-Module-Info.
     * The value has the following format:
     *
     *  <classname>,<classname> ...
     *
     * where classname is the class to instiate.
     */
The manifest must have an attribute with the name Bridge-Module-Info.
The value has the following format.




The manifest must have an attribute with the name Bridge - Module - Info . The value has the following format .
private boolean loadBridgeModule(String dirEntry) throws IOException {
	JarFile jarFile = new JarFile(dirEntry);
	Manifest manifest = null;
	try {
	    manifest = jarFile.getManifest();
	} catch (IOException e) {
	    Logger.println("can't read manifest in " + jarFile);
	    return false;
	}
        if (manifest == null) {
	    if (Logger.logLevel >= Logger.LOG_INFO) {
	        Logger.println("no manifest in " + jarFile);
	    }
	    return false;
	}
	String[] classList = null;
	Attributes attributes = manifest.getMainAttributes();
	if (attributes == null) {
	    if (Logger.logLevel >= Logger.LOG_INFO) {
	        Logger.println("No attributes in " + dirEntry);
	    }
	    return false;
	}
	String attributeValues = attributes.getValue("Bridge-Module-Info");
	if (attributeValues == null) {
	    if (Logger.logLevel >= Logger.LOG_INFO) {
		Logger.println("No attribute values in:  " + dirEntry);
	    }
	    return false;
	}
	String[] moduleValues = attributeValues.split(",");
	for (int i = 0; i < moduleValues.length; i++) {
	    addModule(moduleValues[i].trim());
	}
	return true;
    }
private boolean loadBridgeModule ( String dirEntry ) throws IOException { JarFile jarFile = new JarFile ( dirEntry ) ; Manifest manifest = null ; try { manifest = jarFile . getManifest ( ) ; } catch ( IOException e ) { Logger . println ( "can't read manifest in " + jarFile ) ; return false ; } if ( manifest == null ) { if ( Logger . logLevel >= Logger . LOG_INFO ) { Logger . println ( "no manifest in " + jarFile ) ; } return false ; } String [ ] classList = null ; Attributes attributes = manifest . getMainAttributes ( ) ; if ( attributes == null ) { if ( Logger . logLevel >= Logger . LOG_INFO ) { Logger . println ( "No attributes in " + dirEntry ) ; } return false ; } String attributeValues = attributes . getValue ( "Bridge-Module-Info" ) ; if ( attributeValues == null ) { if ( Logger . logLevel >= Logger . LOG_INFO ) { Logger . println ( "No attribute values in:  " + dirEntry ) ; } return false ; } String [ ] moduleValues = attributeValues . split ( "," ) ; for ( int i = 0 ; i < moduleValues . length ; i ++ ) { addModule ( moduleValues [ i ] . trim ( ) ) ; } return true ; }
The manifest must have an attribute with the name Bridge-Module-Info.
The manifest must have an attribute with the name Bridge - Module - Info .