|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.objectweb.speedo.runtime.BasicJormFactory
This class manages both naming sorts used in Speedo (Container id and user id). The container id (long, long) management is delegated to a polymorphId manager (PolymorphIdMgrImpl) whereas the user id is directly managed by this class. In JDO the binder instance can be used also as PNamingContext because all classes in a class hierarchy must have the same identifier strucutre. Then it is not necessary to use intermediates PNamingContext. Then a PName is always valid inside a PBinder.
Field Summary | |
static java.lang.String |
BASID_BINDER_CLASS_NAME
|
protected org.objectweb.perseus.cache.api.CacheManager |
cache
|
static java.lang.String |
CACHE_MANAGER_BINDING
|
static java.lang.String |
CID_BINDER_CLASS_NAME
|
static java.lang.String |
CID_PNM_CLASS_NAME
|
protected org.objectweb.jorm.facility.naming.polymorphid.PolymorphIdMgrImpl |
cIdManager
The manager of the naming used by the container (long, long). |
static boolean |
CODING_ONLY
|
protected org.objectweb.util.monolog.api.Logger |
logger
|
static java.lang.String |
LOGGER_FACTORY_BINDING
|
static java.lang.String |
LOGGER_NAME
|
protected org.objectweb.util.monolog.api.LoggerFactory |
loggerFactory
|
protected org.objectweb.jorm.api.PMapper |
mapper
The mapper is used to map and find the Jorm classes. |
static java.lang.String |
MAPPER_BINDING
|
protected java.util.Map |
uIdBinders
It contains the association between a class name and its binder. |
Constructor Summary | |
BasicJormFactory()
builds the BasicJormFactory and instanciate the polymorphid manager and the hosting structure for the binder referencemet. |
Method Summary | |
void |
addFcBinding(java.lang.String s,
java.lang.Object o)
|
org.objectweb.jorm.naming.api.PName |
decode(java.lang.Object oid)
It retrieves a PName since a representation of an identifier. |
java.lang.Object |
encode(org.objectweb.jorm.naming.api.PName pn)
It retrieves a representation of an identifier since a PName. |
protected org.objectweb.jorm.naming.api.PNameManager |
findPNameManager(java.lang.String pnmcn,
java.lang.String clName)
|
org.objectweb.jorm.facility.naming.polymorphid.PolymorphIdMgrImpl |
getcIdManager()
|
java.lang.Object |
getFcBindings(java.lang.String s)
|
org.objectweb.jorm.naming.api.PBinder |
getPBinder(SpeedoProxy sp)
|
org.objectweb.jorm.naming.api.PBinder |
getPBinder(java.lang.String classname)
This Method is a shortcut to the getPBinder(SpeedoProxy) method. |
org.objectweb.jorm.api.PClassMapping |
getPClassMapping(SpeedoProxy sp)
Retrieves a PClassMapping instance managing a SpeedoProxy. |
org.objectweb.jorm.api.PClassMapping |
getPClassMapping(java.lang.String classname)
This Method is a shortcut to the getPClassMapping(SpeedoProxy) method. |
org.objectweb.jorm.naming.api.PNamingContext |
getPNamingContext(SpeedoProxy sp)
|
org.objectweb.jorm.naming.api.PNamingContext |
getPNamingContext(java.lang.String classname)
This Method is a shortcut to the getPNamingContext(SpeedoProxy) method. |
void |
removeFcBinding(java.lang.String s,
java.lang.Object serverItf)
|
Field Detail |
public static final java.lang.String MAPPER_BINDING
public static final java.lang.String LOGGER_FACTORY_BINDING
public static final java.lang.String CACHE_MANAGER_BINDING
public static final java.lang.String LOGGER_NAME
public static final java.lang.String CID_BINDER_CLASS_NAME
public static final java.lang.String CID_PNM_CLASS_NAME
public static final java.lang.String BASID_BINDER_CLASS_NAME
public static final boolean CODING_ONLY
protected org.objectweb.jorm.api.PMapper mapper
protected org.objectweb.util.monolog.api.LoggerFactory loggerFactory
protected org.objectweb.perseus.cache.api.CacheManager cache
protected org.objectweb.jorm.facility.naming.polymorphid.PolymorphIdMgrImpl cIdManager
protected java.util.Map uIdBinders
protected org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
public BasicJormFactory()
Method Detail |
public org.objectweb.jorm.facility.naming.polymorphid.PolymorphIdMgrImpl getcIdManager()
public java.lang.Object getFcBindings(java.lang.String s)
public void addFcBinding(java.lang.String s, java.lang.Object o)
public void removeFcBinding(java.lang.String s, java.lang.Object serverItf)
public org.objectweb.jorm.naming.api.PBinder getPBinder(SpeedoProxy sp) throws org.objectweb.jorm.api.PException
getPBinder
in interface JormFactory
public org.objectweb.jorm.naming.api.PBinder getPBinder(java.lang.String classname) throws org.objectweb.jorm.api.PException
getPBinder
in interface JormFactory
classname
- the Jorm class name managed by the wanted PBinderPException
- public org.objectweb.jorm.api.PClassMapping getPClassMapping(SpeedoProxy sp) throws org.objectweb.jorm.api.PException
getPClassMapping
in interface JormFactory
sp
- is the SpeedoProxy instance which the PClassMapping is requiredPException
- public org.objectweb.jorm.api.PClassMapping getPClassMapping(java.lang.String classname) throws org.objectweb.jorm.api.PException
getPClassMapping
in interface JormFactory
classname
- is the class name of the jorm class which the
PClassMapping is requiredPException
- public org.objectweb.jorm.naming.api.PNamingContext getPNamingContext(SpeedoProxy sp) throws org.objectweb.jorm.api.PException
getPNamingContext
in interface JormFactory
public org.objectweb.jorm.naming.api.PNamingContext getPNamingContext(java.lang.String classname) throws org.objectweb.jorm.api.PException
getPNamingContext
in interface JormFactory
classname
- the Jorm class name managed by the wanted PNamingContextPException
- public org.objectweb.jorm.naming.api.PName decode(java.lang.Object oid) throws org.objectweb.jorm.api.PException
decode
in interface JormFactory
oid
- is the identifier representationPException
- if the oid does not represent a managed identifier
representation.public java.lang.Object encode(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.api.PException
encode
in interface JormFactory
pn
- is the pname to encodePException
- if the pname is malformed (null for example).protected org.objectweb.jorm.naming.api.PNameManager findPNameManager(java.lang.String pnmcn, java.lang.String clName) throws org.objectweb.jorm.api.PException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |