|
Coinjema 1.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextSource
A context source has to supply a means of retrieving context scripts for creating dependency objects. It has a name which is strictly relative to its parent context, and it knows how to find all its child contexts. For instance, a FileContextSource implementation returns the name of the last directory in the path as its name, returns its subdirectories as its children, and can provide a FileInputStream given a filename.
Method Summary | |
---|---|
String |
getName()
The relative name of this context. |
Resource |
getResource(String resourceName)
|
Resource |
getResource(String resourceName,
String extension)
A more optimized way to find a specific resource if the caller knows the extension (resource type). |
Collection<ContextSource> |
getSubContexts()
Retrieve a collection of direct subcontexts of this context. |
Method Detail |
---|
Collection<ContextSource> getSubContexts()
String getName()
Resource getResource(String resourceName)
Resource getResource(String resourceName, String extension)
resourceName
- extension
-
|
Coinjema 1.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |