org.kuali.common.util.metainf.service
Class DefaultMetaInfService

java.lang.Object
  extended by org.kuali.common.util.metainf.service.DefaultMetaInfService
All Implemented Interfaces:
MetaInfService

public class DefaultMetaInfService
extends Object
implements MetaInfService


Field Summary
protected static String LINES
           
protected static String PROPERTIES
           
protected static String SIZE
           
 
Constructor Summary
DefaultMetaInfService()
           
 
Method Summary
protected  String getLocationURL(CanonicalFile resourceFile, MetaInfContext context)
           
protected  String getPropertyKey(String location)
           
protected  String getRelativeLocationURL(CanonicalFile resourceFile, MetaInfContext context)
          Get a URL string that can be used to address file.
protected  MetaInfResource getResource(File resourceFile, MetaInfContext context)
           
protected  List<MetaInfResource> getResources(MetaInfContext context, List<File> files)
           
protected  List<WriteLines> getWriteLines(List<ScanResult> results)
           
protected  WriteLines getWriteLines(ScanResult result)
           
protected  List<WriteProperties> getWriteProperties(List<ScanResult> results)
           
protected  WriteProperties getWriteProperties(ScanResult result)
           
 List<ScanResult> scan(List<MetaInfContext> contexts)
           
 ScanResult scan(MetaInfContext context)
           
protected  List<File> scanFileSystem(MetaInfContext context)
           
 void write(List<ScanResult> results)
           
 void write(ScanResult result)
           
protected  void write(WriteRequest request, List<String> lines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES

protected static final String PROPERTIES
See Also:
Constant Field Values

SIZE

protected static final String SIZE
See Also:
Constant Field Values

LINES

protected static final String LINES
See Also:
Constant Field Values
Constructor Detail

DefaultMetaInfService

public DefaultMetaInfService()
Method Detail

scan

public ScanResult scan(MetaInfContext context)
Specified by:
scan in interface MetaInfService

scan

public List<ScanResult> scan(List<MetaInfContext> contexts)
Specified by:
scan in interface MetaInfService

write

public void write(ScanResult result)
Specified by:
write in interface MetaInfService

getWriteLines

protected WriteLines getWriteLines(ScanResult result)

write

public void write(List<ScanResult> results)
Specified by:
write in interface MetaInfService

write

protected void write(WriteRequest request,
                     List<String> lines)

getWriteProperties

protected List<WriteProperties> getWriteProperties(List<ScanResult> results)

getWriteProperties

protected WriteProperties getWriteProperties(ScanResult result)

getWriteLines

protected List<WriteLines> getWriteLines(List<ScanResult> results)

scanFileSystem

protected List<File> scanFileSystem(MetaInfContext context)

getResources

protected List<MetaInfResource> getResources(MetaInfContext context,
                                             List<File> files)

getResource

protected MetaInfResource getResource(File resourceFile,
                                      MetaInfContext context)

getLocationURL

protected String getLocationURL(CanonicalFile resourceFile,
                                MetaInfContext context)

getRelativeLocationURL

protected String getRelativeLocationURL(CanonicalFile resourceFile,
                                        MetaInfContext context)
Get a URL string that can be used to address file. This is usually a Spring pseudo-url classpath location, eg - [classpath:foo/bar.txt]

Parameters:
resourceFile - The file to get a location url for. eg - [/x/y/z/src/main/resources/foo/bar.txt]
context - Context information for generating a relative location url. eg - [/x/y/z/src/main/resources] and [classpath:].
Returns:
A string representing a fully qualified location URL for file. eg - [classpath:foo/bar.txt]

getPropertyKey

protected String getPropertyKey(String location)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.