org.xwiki.extension.script.internal.safe
Class ExtensionPlanScriptSafeProvider

java.lang.Object
  extended by org.xwiki.extension.script.internal.safe.ExtensionPlanScriptSafeProvider
All Implemented Interfaces:
ScriptSafeProvider<ExtensionPlan>

@Component
@Singleton
public class ExtensionPlanScriptSafeProvider
extends Object
implements ScriptSafeProvider<ExtensionPlan>

Provide safe Extension.

Since:
4.0M2

Constructor Summary
ExtensionPlanScriptSafeProvider()
           
 
Method Summary
<S> S
get(ExtensionPlan unsafe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionPlanScriptSafeProvider

public ExtensionPlanScriptSafeProvider()
Method Detail

get

public <S> S get(ExtensionPlan unsafe)
Specified by:
get in interface ScriptSafeProvider<ExtensionPlan>
Type Parameters:
S - the type of the safe object version
Parameters:
unsafe - the unsafe version of the object
Returns:
a safe version of the passed object