|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamingManagerFactoryItf
A NamingManagerFactory manages a set of NamingManager instance. It permits - To bind or unbind a NamingManager, - To find the right NamingManager managing the identifier/naming of a persistent class, - To encode or decode persistent identifier.
NamingManager
Method Summary | |
---|---|
void |
bindNamingManager(NamingManager nm)
Binds a new NamaingManager in this factory |
void |
clean()
clean all naming Manager |
org.objectweb.jorm.naming.api.PName |
decode(org.objectweb.jorm.naming.api.PNameCoder pnc,
java.lang.Object oid,
java.lang.Class clazz,
JormFactory jf)
Decodes an object identifer into a PName. |
java.lang.Object |
encode(org.objectweb.jorm.naming.api.PName pn)
Encodes the persistent identifier (PName) into an object identifier usable, externaly to the Speedo system. |
NamingManager |
getNamingManager(SpeedoClass sc)
|
NamingManager |
getNamingManager(java.lang.String hints,
java.lang.ClassLoader classloader)
|
boolean |
unbindNamingManager(NamingManager nm)
Unbinds an existing NamaingManager in this factory |
Method Detail |
---|
void bindNamingManager(NamingManager nm)
nm
- is the new NamingManager instanceboolean unbindNamingManager(NamingManager nm)
nm
- is the NamingManager instance to forget
NamingManager getNamingManager(SpeedoClass sc) throws SpeedoException
sc
- is the speedo meta object representing the persistent class.
SpeedoException
- if no NamingManager can manage the persistent
class.NamingManager getNamingManager(java.lang.String hints, java.lang.ClassLoader classloader) throws org.objectweb.jorm.api.PException
hints
- is string value containing information permitting to find
the naming manager required.classloader
- is the class loader of the application.
SpeedoException
- if no NamingManager can manage the persistent
class.
org.objectweb.jorm.api.PException
org.objectweb.jorm.naming.api.PName decode(org.objectweb.jorm.naming.api.PNameCoder pnc, java.lang.Object oid, java.lang.Class clazz, JormFactory jf) throws org.objectweb.jorm.api.PException
pnc
- is the PNamingContext managing the naming of the referenced
persistent classoid
- is the object identifierclazz
- is the java class of the referenced class. this paramter
permits of course to access to the class loader of the application.jf
- is the JormFactory managing the persistent class.
org.objectweb.jorm.api.PException
- if it is not possible to decode the object identifier
corresponding to the specified class.encode(PName)
java.lang.Object encode(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.api.PException
pn
- is the Pname to encode
org.objectweb.jorm.api.PException
decode(PNameCoder, Object, java.lang.Class, JormFactory)
void clean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |