@classmethod
    def factory(cls, global_config, **local_config):
        def _factory(app):
            return cls(app, **local_config)
        return _factory
Used for paste app factories in paste.deploy config files.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/wsgi.py/Middleware.factory