@Deprecated public class AutodetectClassPrefixModuleFactory extends com.atlassian.plugin.module.ClassPrefixModuleFactory
PrefixModuleFactory
which uses autowiring instead of
constructor wiring.
This class is created in response to Plugins Framework 5.X which started to use constructor injection as a default. This implementation imitates the old autowiring behaviour and lets our code to work with setter injection.
We are extending ClassPrefixModuleFactory
here instead of implementing PrefixModuleFactory
because
there are hacks in Plugins Framework which use instanceof and will only work if we pretend to be a ClassPrefixModuleFactory.
Constructor and Description |
---|
AutodetectClassPrefixModuleFactory(com.atlassian.plugin.hostcontainer.HostContainer hostContainer)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
createModule(String name,
com.atlassian.plugin.ModuleDescriptor<T> moduleDescriptor)
Deprecated.
|
String |
getPrefix()
Deprecated.
|
public AutodetectClassPrefixModuleFactory(com.atlassian.plugin.hostcontainer.HostContainer hostContainer)
public <T> T createModule(String name, com.atlassian.plugin.ModuleDescriptor<T> moduleDescriptor) throws com.atlassian.plugin.PluginParseException
createModule
in interface com.atlassian.plugin.module.ModuleFactory
createModule
in class com.atlassian.plugin.module.ClassPrefixModuleFactory
com.atlassian.plugin.PluginParseException
public String getPrefix()
getPrefix
in interface com.atlassian.plugin.module.PrefixModuleFactory
getPrefix
in class com.atlassian.plugin.module.ClassPrefixModuleFactory
Copyright © 2003–2020 Atlassian. All rights reserved.