com.atlassian.confluence.plugin.cached
Class SafeModuleTransformerFactory

java.lang.Object
  extended by com.atlassian.confluence.plugin.cached.SafeModuleTransformerFactory

public class SafeModuleTransformerFactory
extends java.lang.Object


Constructor Summary
SafeModuleTransformerFactory()
           
 
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
 

Constructor Detail

SafeModuleTransformerFactory

public SafeModuleTransformerFactory()
Method Detail

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-2014 Atlassian. All Rights Reserved.