com.atlassian.confluence.plugin.cached
Class SafeModuleTransformerFactory
java.lang.Object
com.atlassian.confluence.plugin.cached.SafeModuleTransformerFactory
public class SafeModuleTransformerFactory
- extends Object
|
Method Summary |
static
<M,T extends com.atlassian.plugin.ModuleDescriptor<M>>
com.google.common.base.Function<T,M> |
|
getTransformer(com.atlassian.plugin.PluginController pluginController)
Creates a function that safely extracts the module instance from the given module descriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafeModuleTransformerFactory
public SafeModuleTransformerFactory()
getTransformer
public static <M,T extends com.atlassian.plugin.ModuleDescriptor<M>> com.google.common.base.Function<T,M> getTransformer(com.atlassian.plugin.PluginController pluginController)
- Creates a function that safely extracts the module instance from the given module descriptor. This method will disable any plugin it
can't successfully extract the module instance from.
Copyright © 2003–2015 Atlassian. All rights reserved.