org.kohsuke.stapler.framework.adjunct
Class Adjunct

java.lang.Object
  extended by org.kohsuke.stapler.framework.adjunct.Adjunct

public class Adjunct
extends java.lang.Object

In-memory cache of fully inlined "adjunct" which is a pair of CSS and JavaScript.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class Adjunct.Kind
           
 
Field Summary
 AdjunctManager manager
           
 java.lang.String name
          Fully qualified name of this adjunct that follows the dot notation.
 java.lang.String packageName
          Just the package name portion of slashedName.
 java.util.List<java.lang.String> required
          List of fully qualified adjunct names that are required before this adjunct.
 java.lang.String slashedName
          The same as name but uses '/' separator.
 
Constructor Summary
Adjunct(AdjunctManager manager, java.lang.String name, java.lang.ClassLoader classLoader)
          Builds an adjunct.
 
Method Summary
 java.lang.String getPackageUrl()
          Obtains the absolute URL that points to the package of this adjunct.
 boolean has(Adjunct.Kind k)
           
 void write(StaplerRequest req, org.apache.commons.jelly.XMLOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

public final AdjunctManager manager

name

public final java.lang.String name
Fully qualified name of this adjunct that follows the dot notation.


slashedName

public final java.lang.String slashedName
The same as name but uses '/' separator.


packageName

public final java.lang.String packageName
Just the package name portion of slashedName. No trailing '/'.


required

public final java.util.List<java.lang.String> required
List of fully qualified adjunct names that are required before this adjunct.

Constructor Detail

Adjunct

public Adjunct(AdjunctManager manager,
               java.lang.String name,
               java.lang.ClassLoader classLoader)
        throws java.io.IOException
Builds an adjunct.

Parameters:
name - Fully qualified name of the adjunct.
classLoader - This is where adjuncts are loaded from.
Throws:
java.io.IOException
Method Detail

getPackageUrl

public java.lang.String getPackageUrl()
Obtains the absolute URL that points to the package of this adjunct. Useful as a basis to refer to other resources.


has

public boolean has(Adjunct.Kind k)

write

public void write(StaplerRequest req,
                  org.apache.commons.jelly.XMLOutput out)
           throws org.xml.sax.SAXException,
                  java.io.IOException
Throws:
org.xml.sax.SAXException
java.io.IOException


Copyright © 2011. All Rights Reserved.