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()
Library
public String getName()
public void addDependency(LibraryArtifact.Dependency artifactDep)
public void addArtifactDescription(LibraryArtifact artifact)
public String getArtifactDescription(String artifactName)
Library
getArtifactDescription
in interface Library
public void removeComponent(String qualifiedName)
public boolean resolveDependencies(List<LibraryArtifact> unresolvedPrincipalArtifactList)
public boolean loadLibrary()
loadLibrary
in interface Library
public void loadLibrary(String artifactDependencyName)
public boolean unLoadLibrary()
unLoadLibrary
in interface Library
public ClassLoader getLibClassLoader()
getLibClassLoader
in interface Library
public void clear()
public Object getArtifact(String artifacName)
getArtifact
in interface Library
artifacName
- public String getPackage()
Library
getPackage
in interface Library
public void setDescription(String description)
SynapseArtifact
setDescription
in interface SynapseArtifact
description
- tobe set to the artifactpublic String getDescription()
SynapseArtifact
getDescription
in interface SynapseArtifact
public void setLibClassLoader(ClassLoader libClassLoader)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.