|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxsmeral.semnet.sink.RepositoryFactory
public abstract class RepositoryFactory
Base class for Sesame repository factories.
It is configured with a Properties instance containing any implementation-specific
parameters.
Repository
Field Summary | |
---|---|
static String |
PROP_WORKING_DIR
|
Constructor Summary | |
---|---|
RepositoryFactory()
|
Method Summary | |
---|---|
Properties |
getProperties()
Returns the initialization Properties. |
Repository |
getRepository()
Should be called only after initialization and return initialized repository. |
protected abstract void |
initialize()
Instantiates and initializes the Repository. |
void |
initialize(Properties props)
Sets the properties and calls initialize() |
protected void |
setRepository(Repository repo)
Called by the factory, sets the initialized repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_WORKING_DIR
Constructor Detail |
---|
public RepositoryFactory()
Method Detail |
---|
public final Repository getRepository()
protected void setRepository(Repository repo)
public final Properties getProperties()
public final void initialize(Properties props) throws RepositoryException
initialize()
props
-
RepositoryException
- If the repository fails to initializeprotected abstract void initialize() throws RepositoryException
setRepository(repo)
RepositoryException
- In case of any error with repository initialization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |