@Deprecated public class AutodetectModuleFactoryHolder extends Object
ModuleFactory. The reason why we need it is to make possible to have more than one ModuleFactory.
In Plugins Framework 5 we had a problem that default injection becomes by constructor. This doesn't always work because
connie has macros which are using setter injection. To make it still work we have to replace some parts of Plugins
Framework to our custom parts which continue to use autowiring. For example see
After creating these custom parts we a faced with a problem of how to inject them to necessary places. We can't
create 2 instances of ModuleFactory, because Spring will blow up on type injection (it will not know what to inject).
To make Spring happy we need to have some other custom type which can be registered into Spring and injected. This class is
created just to be this custom type which sits in Spring context and is available for injection. See the constructor
XhtmlMacroModuleDescriptor for example of how we inject the
instance of this class.
|Constructor and Description|
|Modifier and Type||Method and Description|
Copyright © 2003–2020 Atlassian. All rights reserved.