Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.repoweb.model.file
Class FileRepository  view FileRepository download FileRepository.java

java.lang.Object
  extended byorg.repoweb.model.file.FileRepository
All Implemented Interfaces:
org.repoweb.model.Repository

public class FileRepository
extends java.lang.Object
implements org.repoweb.model.Repository

Represente un repository maven accede directement par des fichiers .


Field Summary
private  java.io.File _root
           
private static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
FileRepository(java.io.File root)
           
FileRepository(java.lang.String root)
           
 
Method Summary
private  void addArtifact(java.io.File typeFolder, java.util.List artifactList)
           
private  org.repoweb.model.GroupList buildGroups(java.io.File[] grpFolders)
           
private  boolean containsFile(org.repoweb.model.Artifact artifact, java.lang.String fileName)
           
 org.repoweb.model.GroupList findAllGroups()
          Search alll groups.
 org.repoweb.model.ArtifactList findArtifactByClass(java.lang.String fullClassName)
          Search Artifacts that contains a class.
 org.repoweb.model.ArtifactList findArtifactByName(java.lang.String pattern)
          Search Artifacts that have an id that match pattern.
 org.repoweb.model.Group findGroup(java.lang.String groupId)
          Search for a group.
 org.repoweb.model.GroupList findGroupsByName(java.lang.String pattern)
          Search groups that have a groupId that match pattern.
private  java.util.List loadAllArtifact(java.lang.String type)
           
private  java.util.List loadArtifactFrom(java.io.File groupFolder, java.lang.String type)
           
private static java.lang.String toClassFile(java.lang.String fullClassName)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

_root

private final java.io.File _root
Constructor Detail

FileRepository

public FileRepository(java.lang.String root)
               throws org.repoweb.model.BadRepositoryLocationException

FileRepository

public FileRepository(java.io.File root)
               throws org.repoweb.model.BadRepositoryLocationException
Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


findGroup

public org.repoweb.model.Group findGroup(java.lang.String groupId)
                                  throws org.repoweb.model.UnknownGroupIdException
Description copied from interface: org.repoweb.model.Repository
Search for a group.

Specified by:
findGroup in interface org.repoweb.model.Repository

findGroupsByName

public org.repoweb.model.GroupList findGroupsByName(java.lang.String pattern)
Description copied from interface: org.repoweb.model.Repository
Search groups that have a groupId that match pattern.

Specified by:
findGroupsByName in interface org.repoweb.model.Repository

findArtifactByName

public org.repoweb.model.ArtifactList findArtifactByName(java.lang.String pattern)
Description copied from interface: org.repoweb.model.Repository
Search Artifacts that have an id that match pattern.

Specified by:
findArtifactByName in interface org.repoweb.model.Repository

findArtifactByClass

public org.repoweb.model.ArtifactList findArtifactByClass(java.lang.String fullClassName)
Description copied from interface: org.repoweb.model.Repository
Search Artifacts that contains a class.

Specified by:
findArtifactByClass in interface org.repoweb.model.Repository

findAllGroups

public org.repoweb.model.GroupList findAllGroups()
Description copied from interface: org.repoweb.model.Repository
Search alll groups.

Specified by:
findAllGroups in interface org.repoweb.model.Repository

loadArtifactFrom

private java.util.List loadArtifactFrom(java.io.File groupFolder,
                                        java.lang.String type)

buildGroups

private org.repoweb.model.GroupList buildGroups(java.io.File[] grpFolders)

addArtifact

private void addArtifact(java.io.File typeFolder,
                         java.util.List artifactList)

loadAllArtifact

private java.util.List loadAllArtifact(java.lang.String type)

containsFile

private boolean containsFile(org.repoweb.model.Artifact artifact,
                             java.lang.String fileName)

toClassFile

private static java.lang.String toClassFile(java.lang.String fullClassName)