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)
|
Map<String,Object> |
getArtifacts() |
String |
getDescription()
Retrieves the description of the artifact
|
String |
getFileName() |
Map<String,String> |
getLibArtifactDetails() |
ClassLoader |
getLibClassLoader() |
boolean |
getLibStatus()
Gets the library status which can determine whether the library should be
available during run time
|
List<String> |
getLocalEntries() |
Map<String,Object> |
getLocalEntryArtifacts()
Returns the list of local entry definitions
|
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 |
setFileName(String fileName) |
void |
setLibClassLoader(ClassLoader libClassLoader) |
void |
setLibStatus(boolean status) |
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 Map<String,String> getLibArtifactDetails()
getLibArtifactDetails 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 String getFileName()
getFileName in interface Librarypublic void setFileName(String fileName)
setFileName in interface Librarypublic void clear()
public Object getArtifact(String artifacName)
getArtifact in interface LibraryartifacName - public Map<String,Object> getArtifacts()
getArtifacts in interface Librarypublic 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)
public Map<String,Object> getLocalEntryArtifacts()
LibrarygetLocalEntryArtifacts in interface Librarypublic List<String> getLocalEntries()
getLocalEntries in interface Librarypublic boolean getLibStatus()
LibrarygetLibStatus in interface Librarypublic void setLibStatus(boolean status)
setLibStatus in interface LibraryCopyright © 2005–2019 Apache Software Foundation. All rights reserved.