Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[higgins-dev] IContextFactory vs IContext instantiation.

Hi Jim,

I'm trying to figure out how to implement IContextFactory for our jena
based context provided but I can't really understand how to create
contexts using single parameter provided to IContextFactory.createContext
method.

First of all it is a big question what that parameter (URI
contextRef) really means. Do you have some examples of such
context refs and their interpretation? How are you using context ref
parameter in your implementation of LDAP context provider?

The second problem is that when we're creating some context we need to
be able to set context's schema (preferably either as InputStream or
as URL) but where we can get a schema if IContextFactory.createContext
takes only one parameter?

Next problem is that we need a way to configure somehow actual context's
storage (database connection, file, LDAP directory, etc) for each context
instance but we can't do this without additional parameters in
IContextFactory.createContext.

I do not think that one-time configuration of context factory could
help to solve above problems. May be it would be right to add one more
parameter (probably of type java.util.Properties) to both canCreate
and createContext methods of IContextFactory?

-- 
Thanks,

Valery



Back to the top