Esempio n. 1
0
    def createReader(clazz, readername):
        """Static method to create a reader from a reader clazz.

        @param clazz:      the reader class name
        @param readername: the reader name
        """
        if not clazz in ReaderFactory.factories:
            ReaderFactory.factories[clazz] = get_class(clazz).Factory()
        return ReaderFactory.factories[clazz].create(readername)
Esempio n. 2
0
    def createReader(clazz, readername):
        """Static method to create a reader from a reader clazz.

        @param clazz:      the reader class name
        @param readername: the reader name
        """
        if not clazz in ReaderFactory.factories:
            ReaderFactory.factories[clazz] = get_class(clazz).Factory()
        return ReaderFactory.factories[clazz].create(readername)
Esempio n. 3
0
    def createReader(clazz, readername):
        """Static method to create a reader from a reader clazz.

        @param module:     the python module that contains the reader class
        @param clazz:      the reader class name
        @param readername: the reader name
        """
        if not ReaderFactory.factories.has_key(clazz):
            ReaderFactory.factories[clazz] = get_class(clazz).Factory()
        return ReaderFactory.factories[clazz].create(readername)
Esempio n. 4
0
    def createReader(clazz, readername):
        """Static method to create a reader from a reader clazz.

        @param module:     the python module that contains the reader class
        @param clazz:      the reader class name
        @param readername: the reader name
        """
        if not ReaderFactory.factories.has_key(clazz):
            ReaderFactory.factories[clazz] = get_class(clazz).Factory()
        return ReaderFactory.factories[clazz].create(readername)