|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyCodeSource
public class GroovyCodeSource extends Object
CodeSource wrapper class that allows specific security policies to be associated with a class compiled from groovy source.
Constructor Summary | |
GroovyCodeSource(String script, String name, String codeBase)
|
|
GroovyCodeSource(Reader reader, String name, String codeBase)
Construct a GroovyCodeSource for an inputStream of groovyCode that has an unknown provenance -- meaning it didn't come from a File or a URL (e.g. a String). |
|
GroovyCodeSource(File infile, String encoding)
|
|
GroovyCodeSource(File infile)
@param infile the file to create a GroovyCodeSource for. |
|
GroovyCodeSource(URL url)
|
Method Summary | |
---|---|
File
|
getFile()
|
String
|
getName()
|
String
|
getScriptText()
|
boolean
|
isCachable()
|
void
|
setCachable(boolean b)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public GroovyCodeSource(String script, String name, String codeBase)
public GroovyCodeSource(Reader reader, String name, String codeBase)
The permission groovy.security.GroovyCodeSourcePermission will be used to determine if the given codeBase may be specified. That is, the current Policy set must have a GroovyCodeSourcePermission that implies the codeBase, or an exception will be thrown. This is to prevent callers from hijacking existing codeBase policy entries unless explicitly authorized by the user.
public GroovyCodeSource(File infile, String encoding)
public GroovyCodeSource(File infile)
infile
- the file to create a GroovyCodeSource for.
public GroovyCodeSource(URL url)
Method Detail |
---|
public File getFile()
public String getName()
public String getScriptText()
public boolean isCachable()
public void setCachable(boolean b)
Copyright © 2003-2013 The Codehaus. All rights reserved.