|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.JellyContext org.apache.maven.jelly.MavenJellyContext
Specialized version of a JellyContext
.
This class simply provides hooks for accessing the jelly
run-time execution. Typical idiom simply includes adding
poor-man's-aspects (PMAs) to a JellyContext
an explicitly invoking the super-class implementation
of a given method.
Field Summary |
Fields inherited from class org.apache.commons.jelly.JellyContext |
classLoader, useContextClassLoader |
Constructor Summary | |
MavenJellyContext()
Construct. |
|
MavenJellyContext(MavenJellyContext parent)
Construct. |
|
MavenJellyContext(java.net.URL rootContext)
Construct. |
Method Summary | |
protected JellyContext |
createChildContext()
Create a context with this as the parent |
void |
display()
Display all maven variables |
org.apache.tools.ant.Project |
getAntProject()
Get the ant project. |
java.lang.Boolean |
getBoolean(java.lang.String key)
Convert a String property to a
Boolean based on its contents. |
java.lang.Boolean |
getDebugOn()
Get the debug flag. |
java.lang.Boolean |
getEmacsModeOn()
Get the emacs mode flag. |
java.lang.String |
getMavenHome()
Get MavenSession home. |
java.lang.String |
getMavenHomeLocal()
Get local maven home. |
java.lang.Boolean |
getMavenJarOverride()
Get the flag indicating the use of the JAR overriding facility. |
java.lang.String |
getMavenJarOverride(java.lang.String id)
Get the maven jar override value for a particular dependency. |
java.lang.String |
getMavenRepoLocal()
Get the location of the local maven repository. |
java.util.List |
getMavenRepoRemote()
Get the mavenRepoRemote attribute. |
MavenSession |
getMavenSession()
Get the mavenSession attribute. |
java.lang.Boolean |
getOnline()
Get the online flag. |
java.lang.String |
getPluginsDir()
Get plugins location. |
Project |
getProject()
Get the maven project. |
java.lang.String |
getProxyHost()
Get the proxy host. |
java.lang.String |
getProxyPassword()
Get the proxy password. |
java.lang.String |
getProxyPort()
Get the proxy port. |
java.lang.String |
getProxyUserName()
Get the proxy user name. |
java.lang.Boolean |
getRemoteRepositoryEnabled()
Set flag indicating if the remote repository is enabled for use. |
TagLibrary |
getTagLibrary(java.lang.String uri)
Retrieve a registered TagLibrary by namespace URI. |
java.lang.String |
getUnpackedPluginsDir()
Get unpacked plugins location. |
java.lang.String |
getUserPluginsDir()
Get user plugins location. |
java.lang.Object |
getVariable(java.lang.String name)
Retrieve a variable. |
WerkzProject |
getWerkzProject()
retrieve the werkz project object |
XMLOutput |
getXMLOutput()
Get the jelly output sink. |
void |
registerTagLibrary(java.lang.String namespaceURI,
java.lang.String className)
Register a new tag library. |
void |
registerTagLibrary(java.lang.String uri,
TagLibrary taglib)
Register a new tag library. |
void |
resolveRelativePaths(java.io.File basedir)
|
void |
setAntProject(org.apache.tools.ant.Project antProject)
Set the ant project. |
void |
setDebugOn(java.lang.Boolean debug)
Set the debug flag. |
void |
setEmacsModeOn(java.lang.Boolean emacsModeOn)
Set the emacs mode flag. |
void |
setMavenJarOverride(java.lang.Boolean mavenJarOverride)
Set the flag indicating the use of the JAR overriding facility. |
void |
setMavenRepoLocal(java.lang.String mavenRepoLocal)
Set the location of the local maven repository. |
void |
setMavenRepoRemotes(java.util.List mavenRepoRemote)
|
void |
setMavenSession(MavenSession mavenSession)
Set the mavenSession attribute. |
void |
setOnline(java.lang.Boolean online)
Set the online flag. |
void |
setParent(JellyContext context)
|
void |
setProject(Project project)
Set the maven project. |
void |
setProxyHost(java.lang.String proxyHost)
Set the proxy host. |
void |
setProxyPassword(java.lang.String proxyPassword)
Set the proxy password. |
void |
setProxyPort(java.lang.String proxyPort)
Set the proxy port. |
void |
setProxyUserName(java.lang.String proxyUserName)
Set the proxy user name. |
void |
setRemoteRepositoryEnabled(java.lang.Boolean remoteRepositoryEnabled)
Set flag indicating if the remote repository is enabled for use. |
void |
setWerkzProject(WerkzProject werkzProject)
retrieve the werkz project object |
void |
setXMLOutput(XMLOutput xmlOutput)
Set the jelly output sink. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MavenJellyContext()
public MavenJellyContext(java.net.URL rootContext)
rootContext
- The root context.public MavenJellyContext(MavenJellyContext parent)
parent
- Parent MavenJellyContextMethod Detail |
protected JellyContext createChildContext()
public void registerTagLibrary(java.lang.String uri, TagLibrary taglib)
This implementation calls the superclass
implementation after determining that there
is no other tag-lib registered for the
given uri
.
uri
- Namespace URI to index the taglib.taglib
- The tag-lib to register.public void registerTagLibrary(java.lang.String namespaceURI, java.lang.String className)
This implementation calls the superclass
implementation after determining that there
is no other tag-lib registered for the
given namespaceURI
.
namespaceURI
- Namespace URI to index the taglib.className
- The class name of the tag-lib to register.public TagLibrary getTagLibrary(java.lang.String uri)
TagLibrary
by namespace URI.
uri
- The namespace URI of the tag-library.
null
if none matches.public java.lang.Object getVariable(java.lang.String name)
name
- The name of the variable.
null
.public java.lang.Boolean getBoolean(java.lang.String key)
String
property to a
Boolean
based on its contents. It would be nice
if Jelly would deal with this automatically.
key
- The property key to lookup and convert.
Boolean.FALSE
.public void setMavenSession(MavenSession mavenSession)
mavenSession
- the session for the contextpublic MavenSession getMavenSession()
public void setMavenRepoRemotes(java.util.List mavenRepoRemote)
public java.util.List getMavenRepoRemote()
public void setMavenRepoLocal(java.lang.String mavenRepoLocal)
mavenRepoLocal
- The local repository.public java.lang.String getMavenRepoLocal()
public void setXMLOutput(XMLOutput xmlOutput)
xmlOutput
- The jelly output sink.public XMLOutput getXMLOutput()
public void setOnline(java.lang.Boolean online)
online
- The online flag.public java.lang.Boolean getOnline()
public void setProject(Project project)
project
- The maven project.public Project getProject()
public void setProxyHost(java.lang.String proxyHost)
proxyHost
- The proxy host.public java.lang.String getProxyHost()
public void setProxyPort(java.lang.String proxyPort)
proxyPort
- The proxy port.public java.lang.String getProxyPort()
public void setProxyUserName(java.lang.String proxyUserName)
proxyUserName
- The user name setting for the proxy.public java.lang.String getProxyUserName()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword
- The proxy password.public java.lang.String getProxyPassword()
public void setDebugOn(java.lang.Boolean debug)
debug
- The debug flag.public java.lang.Boolean getDebugOn()
public void setEmacsModeOn(java.lang.Boolean emacsModeOn)
emacsModeOn
- The emacs mode flag.public java.lang.Boolean getEmacsModeOn()
public void setRemoteRepositoryEnabled(java.lang.Boolean remoteRepositoryEnabled)
remoteRepositoryEnabled
- Remote repository usage flag.public java.lang.Boolean getRemoteRepositoryEnabled()
public void setMavenJarOverride(java.lang.Boolean mavenJarOverride)
mavenJarOverride
- MavenSession jar override flag.public java.lang.Boolean getMavenJarOverride()
public java.lang.String getMavenJarOverride(java.lang.String id)
id
- Id of the project to override.
public java.lang.String getMavenHome()
public void setWerkzProject(WerkzProject werkzProject)
werkzProject
- Werkz Project
public WerkzProject getWerkzProject()
Werkz Project
public void setAntProject(org.apache.tools.ant.Project antProject)
antProject
- The proxy password.public org.apache.tools.ant.Project getAntProject()
public void display()
public java.lang.String getMavenHomeLocal()
public java.lang.String getPluginsDir()
public java.lang.String getUserPluginsDir()
public java.lang.String getUnpackedPluginsDir()
public void setParent(JellyContext context)
JellyContext.setParent(JellyContext)
public void resolveRelativePaths(java.io.File basedir)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |