|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.rep.Rep
public abstract class Rep
This static abstract class provides easy application-wide access to the
default Repository.
It's main purpose is to be able to quickle retrieve its
Participants.
It's possible to retrieve and replace the default
Repository with the setDefaultRepository and getDefaultRepository methods.
Participant,
Repository| Constructor Summary | |
|---|---|
Rep()
|
|
| Method Summary | |
|---|---|
static void |
cleanup()
Cleans up the default repository if it exists. |
static Repository |
getDefaultRepository()
Retrieves the current default repository. |
static Participant |
getParticipant(String name)
Convenience method to quickly retrieve the first participant with a certain name from the default repository. |
static Collection<? extends Participant> |
getParticipants(String name)
Convenience method to quickly retrieve all the participants with a certain name from the default repository. |
static HierarchicalProperties |
getProperties()
Convenience method to quickly retrieve the properties from the default repository. |
static boolean |
hasParticipant(String name)
Convenience method to quickly check if a participant with a certain name is available in the default repository. |
static void |
initialize(String repXmlPath)
Initializes the default repository by creating an instance of BlockingRepository and initializing it with the provided
XML path, a default resource finder and no context. |
static void |
initialize(String repXmlPath,
ResourceFinder resourcefinder,
Object context)
Initializes the default repository by creating an instance of BlockingRepository and initializing it with the provided
properties and context. |
static void |
setDefaultRepository(Repository repository)
Replaces the default repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rep()
| Method Detail |
|---|
public static void initialize(String repXmlPath)
BlockingRepository and initializing it with the provided
XML path, a default resource finder and no context.
initialize(String, ResourceFinder, Object)
public static void initialize(String repXmlPath,
ResourceFinder resourcefinder,
Object context)
BlockingRepository and initializing it with the provided
properties and context.
BlockingRepository,
BlockingRepository.initialize(String, ResourceFinder)public static void setDefaultRepository(Repository repository)
repository - An instance of Repository that will
afterwards become the application-wide default repository.Repositorypublic static Repository getDefaultRepository()
Repository that is currently the
application-wide default repository.Repositorypublic static boolean hasParticipant(String name)
Repository.hasParticipant(String)public static Participant getParticipant(String name)
Repository.getParticipant(String)public static Collection<? extends Participant> getParticipants(String name)
Repository.getParticipants(String)public static HierarchicalProperties getProperties()
HierarchicalProperties is returned.
Repository.getProperties()public static void cleanup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||