|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyCodeSource
public class GroovyCodeSource
CodeSource wrapper class that allows specific security policies to be associated with a class compiled from groovy source.
Field Summary | |
---|---|
private boolean |
cachable
|
(package private) java.security.cert.Certificate[] |
certs
The certificates used to sign the items from the codesource |
private java.security.CodeSource |
codeSource
The codeSource to be given the generated class. |
private java.io.File |
file
|
private java.io.InputStream |
inputStream
The groovy source to be compiled and turned into a class |
private java.lang.String |
name
The name given to the generated class |
Constructor Summary | |
---|---|
GroovyCodeSource(java.io.File infile)
|
|
GroovyCodeSource(java.io.InputStream inputStream,
java.lang.String name,
java.lang.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(java.lang.String script,
java.lang.String name,
java.lang.String codeBase)
|
|
GroovyCodeSource(java.net.URL url)
|
Method Summary | |
---|---|
(package private) java.security.CodeSource |
getCodeSource()
|
java.io.File |
getFile()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
boolean |
isCachable()
|
void |
setCachable(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.security.CodeSource codeSource
private java.lang.String name
private java.io.InputStream inputStream
java.security.cert.Certificate[] certs
private boolean cachable
private java.io.File file
Constructor Detail |
---|
public GroovyCodeSource(java.lang.String script, java.lang.String name, java.lang.String codeBase)
public GroovyCodeSource(java.io.InputStream inputStream, java.lang.String name, java.lang.String codeBase)
public GroovyCodeSource(java.io.File infile) throws java.io.IOException
java.io.IOException
public GroovyCodeSource(java.net.URL url) throws java.io.IOException
java.io.IOException
Method Detail |
---|
java.security.CodeSource getCodeSource()
public java.io.InputStream getInputStream()
public java.lang.String getName()
public java.io.File getFile()
public void setCachable(boolean b)
public boolean isCachable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |