Class ClasspathScriptLocation

  • All Implemented Interfaces:
    ScriptLocation

    public class ClasspathScriptLocation
    extends Object
    implements ScriptLocation
    Classpath script location object.
    Author:
    Roy Wetherall
    • Constructor Detail

      • ClasspathScriptLocation

        public ClasspathScriptLocation​(String location)
        Constructor
        Parameters:
        location - the classpath location
    • Method Detail

      • isCachable

        public boolean isCachable()
        Description copied from interface: ScriptLocation
        Returns true if the script content is considered cachedable - i.e. classpath located or similar. Else the content will be compiled/interpreted on every execution i.e. repo content.
        Specified by:
        isCachable in interface ScriptLocation
        Returns:
        true if the script content is considered cachedable, false otherwise
      • isSecure

        public boolean isSecure()
        Description copied from interface: ScriptLocation
        Returns true if the script location is considered secure - i.e. on the repository classpath. Secure scripts may access java.* libraries and instantiate pure Java objects directly. Unsecure scripts only have access to pre-configure host objects and cannot access java.* libs.
        Specified by:
        isSecure in interface ScriptLocation
        Returns:
        true if the script location is considered secure
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object