Class SynapseLibrary

    • Field Detail

      • qualifiedName

        protected QName qualifiedName
        this is the logical name of the Synapse library which constitutes of [package + library name]
    • Constructor Detail

      • SynapseLibrary

        public SynapseLibrary​(String name,
                              String packageName)
    • Method Detail

      • getQName

        public QName getQName()
        Description copied from interface: Library
        get Fully qualified Name of the Library
        Specified by:
        getQName in interface Library
        Returns:
        returns the logical name of the Synapse library which constitutes of [package + library name]
      • getName

        public String getName()
      • addComponent

        public void addComponent​(String qualifiedName,
                                 Object libComponent)
      • addArtifactDescription

        public void addArtifactDescription​(LibraryArtifact artifact)
      • getArtifactDescription

        public String getArtifactDescription​(String artifactName)
        Description copied from interface: Library
        gives the Artifact description for the given artifact name (if available)
        Specified by:
        getArtifactDescription in interface Library
        Returns:
      • removeComponent

        public void removeComponent​(String qualifiedName)
      • resolveDependencies

        public boolean resolveDependencies​(List<LibraryArtifact> unresolvedPrincipalArtifactList)
      • loadLibrary

        public boolean loadLibrary()
        load all library artifacts on this library this should be called when a import is taking place
        Specified by:
        loadLibrary in interface Library
        Returns:
        success
      • loadLibrary

        public void loadLibrary​(String artifactDependencyName)
        load all library artifacts on this library for the given QName this should be called when a import is taking place
      • unLoadLibrary

        public boolean unLoadLibrary()
        unload all library artifacts on this library for the given QName this should be called when a import is no longer valid/ non-existent
        Specified by:
        unLoadLibrary in interface Library
        Returns:
        success
      • getLibClassLoader

        public ClassLoader getLibClassLoader()
        Specified by:
        getLibClassLoader in interface Library
        Returns:
        the Class loader that can be used to load classes/resources under this library
      • clear

        public void clear()
      • getArtifact

        public Object getArtifact​(String artifacName)
        return synapse lib artifact deployed by this library with the given Local name
        Specified by:
        getArtifact in interface Library
        Parameters:
        artifacName -
        Returns:
      • getPackage

        public String getPackage()
        Description copied from interface: Library
        returns the package that this Library belongs to
        Specified by:
        getPackage in interface Library
        Returns:
        package name
      • setDescription

        public void setDescription​(String description)
        Description copied from interface: SynapseArtifact
        Set the description of the artifact
        Specified by:
        setDescription in interface SynapseArtifact
        Parameters:
        description - tobe set to the artifact
      • setLibClassLoader

        public void setLibClassLoader​(ClassLoader libClassLoader)
      • getLibStatus

        public boolean getLibStatus()
        Description copied from interface: Library
        Gets the library status which can determine whether the library should be available during run time
        Specified by:
        getLibStatus in interface Library
        Returns:
      • setLibStatus

        public void setLibStatus​(boolean status)
        Specified by:
        setLibStatus in interface Library