public class SynapseLibrary extends Object implements Library
| Modifier and Type | Field and Description |
|---|---|
List<LibraryArtifact.Dependency> |
dependencies |
protected QName |
qualifiedName
this is the logical name of the Synapse library which constitutes of [package + library name]
|
| Constructor and Description |
|---|
SynapseLibrary(String name,
String packageName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArtifactDescription(LibraryArtifact artifact) |
void |
addComponent(String qualifiedName,
Object libComponent) |
void |
addDependency(LibraryArtifact.Dependency artifactDep) |
void |
clear() |
Object |
getArtifact(String artifacName)
return synapse lib artifact deployed by this library with the given Local name
|
String |
getArtifactDescription(String artifactName)
gives the Artifact description for the given artifact name (if available)
|
String |
getDescription()
Retrieves the description of the artifact
|
ClassLoader |
getLibClassLoader() |
String |
getName() |
String |
getPackage()
returns the package that this Library belongs to
|
QName |
getQName()
get Fully qualified Name of the Library
|
boolean |
loadLibrary()
load all library artifacts on this library
this should be called when a import is taking place
|
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
|
void |
removeComponent(String qualifiedName) |
boolean |
resolveDependencies(List<LibraryArtifact> unresolvedPrincipalArtifactList) |
void |
setDescription(String description)
Set the description of the artifact
|
void |
setLibClassLoader(ClassLoader libClassLoader) |
String |
toString() |
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
|
protected QName qualifiedName
public List<LibraryArtifact.Dependency> dependencies
public QName getQName()
Librarypublic String getName()
public void addDependency(LibraryArtifact.Dependency artifactDep)
public void addArtifactDescription(LibraryArtifact artifact)
public String getArtifactDescription(String artifactName)
LibrarygetArtifactDescription in interface Librarypublic void removeComponent(String qualifiedName)
public boolean resolveDependencies(List<LibraryArtifact> unresolvedPrincipalArtifactList)
public boolean loadLibrary()
loadLibrary in interface Librarypublic void loadLibrary(String artifactDependencyName)
public boolean unLoadLibrary()
unLoadLibrary in interface Librarypublic ClassLoader getLibClassLoader()
getLibClassLoader in interface Librarypublic void clear()
public Object getArtifact(String artifacName)
getArtifact in interface LibraryartifacName - public String getPackage()
LibrarygetPackage in interface Librarypublic void setDescription(String description)
SynapseArtifactsetDescription in interface SynapseArtifactdescription - tobe set to the artifactpublic String getDescription()
SynapseArtifactgetDescription in interface SynapseArtifactpublic void setLibClassLoader(ClassLoader libClassLoader)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.