@classmethod
    def factory(cls, global_config, **local_config):
        def _factory(app):
            return cls(app, global_config, **local_config)
        return _factory
Paste factory.
dataset/ETHPy150Open openstack/neutron/neutron/api/extensions.py/ExtensionMiddleware.factory