|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.repoweb.model.jar.JarRepository
Represent a maven repository located in the same jar file of this class. Use ClassLoader mechanism.
Constructor Summary | |
JarRepository(java.lang.String rootPath)
|
Method Summary | |
Artifact |
buildPom(Project project)
Build a new POM in the repository. |
ArtifactList |
findArtifactByClass(java.lang.String fullClassName)
Search Artifacts that contains a class. |
ArtifactList |
findArtifacts(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Search for Artifacts. |
GroupList |
findGroups(java.lang.String pattern)
Search groups that have a groupId that match pattern. |
GroupList |
getAllGroups()
Get alll groups of this repository. |
Artifact |
getArtifact(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Get one Artifact. |
Group |
getGroup(java.lang.String groupId)
Get a group from this repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JarRepository(java.lang.String rootPath)
Method Detail |
public GroupList getAllGroups()
Repository
getAllGroups
in interface Repository
public Group getGroup(java.lang.String groupId)
Repository
getGroup
in interface Repository
groupId
- group Id.
public Artifact getArtifact(java.lang.String groupId, java.lang.String typeId, java.lang.String filename) throws UnknownArtifactException
Repository
getArtifact
in interface Repository
groupId
- Group Id of the artifact (e.g. 'junit')typeId
- Artifact type (e.g. 'jar')filename
- Artifact file name (e.g. 'junit-3.8.1.jar')
UnknownArtifactException
- artifact do not exist in
the repo.public GroupList findGroups(java.lang.String pattern)
Repository
findGroups
in interface Repository
pattern
- pattern for search
public ArtifactList findArtifacts(java.lang.String groupId, java.lang.String typeId, java.lang.String filename)
Repository
findArtifacts
in interface Repository
groupId
- Group Id of the artifact (e.g. 'junit')typeId
- Artifact type (e.g. 'jar')filename
- Artifact file name (e.g. 'junit-3.8.1.jar')
public ArtifactList findArtifactByClass(java.lang.String fullClassName)
Repository
findArtifactByClass
in interface Repository
fullClassName
- full qualified class name
public Artifact buildPom(Project project) throws BuildFailureException
Repository
buildPom
in interface Repository
project
- the bean of the POM.
BuildFailureException
- Failed to build the POM.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |