org.kuali.common.util.metainf.service
Class DefaultMetaInfService
java.lang.Object
org.kuali.common.util.metainf.service.DefaultMetaInfService
- All Implemented Interfaces:
- MetaInfService
public class DefaultMetaInfService
- extends Object
- implements MetaInfService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultMetaInfService
public DefaultMetaInfService()
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.