Allow plugin context to be identified by constructor function or name string