Package org.objectweb.jorm.naming.api

Examples of org.objectweb.jorm.naming.api.PNamingContext


                      Map cn2binder,
                      Map cn2pnc,
                      Manager miManager,
                      PClassMapping pcm) throws PException {
    String[] tokens = getTokens(hints);
    PNamingContext pnc = null;
    if (tokens[BINDER_IDX].equals(tokens[PNC_IDX])) {
      //The binder must be used as PNamingContext
      pnc = (PNamingContext) cn2binder.get(className);
      if (pnc == null) {
        //instanciate the binder/PNC
View Full Code Here


                      Map cn2pnc,
                      Manager miManager,
                      PClassMapping pcm) throws PException {
    init();
    String[] tokens = NamingManagerHelper.getTokens(hints);
    PNamingContext pnc = null;
    if (tokens[NamingManagerHelper.BINDER_IDX].equals(tokens[NamingManagerHelper.PNC_IDX])) {
      //The binder must be used as PNamingContext
      pnc = (PNamingContext) cn2binder.get(className);
      if (pnc == null) {
        //instanciate the binder/PNC
View Full Code Here

    public PNameCoder getPNameCoder(String sourceclassName,
                    String refFieldName,
                    String destclassName) {
      try {
        PNamingContext pnc = getPNamingContext(destclassName, classLoader);
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG,
            "Assign the PNamingContext for the field " + sourceclassName
            + "." + refFieldName + " which references the class "
            + destclassName + ": " + pnc);
View Full Code Here

                    String[] genClassNames) {
      String path = JormPathHelper.getPath(
        sourceclassName, refFieldName, genClassNames);
      String hints = (String) classProperties.get(path);
      try {
        PNamingContext pnc = (PNamingContext) findPNameManager(path, classLoader, null, hints);
        logger.log(BasicLevel.DEBUG,
          "getPNameManager(" + path + ") ==>" + pnc);
        return pnc;
      } catch (PException e) {
        throw new SpeedoRuntimeException(e.getMessage(), e);
View Full Code Here

        logger.log(BasicLevel.DEBUG, "\tgcm=" + gcm);
        PBinder pb = findPBinder(cn, classLoader, hints);
        logger.log(BasicLevel.DEBUG, "\tbinder=" + pb);
        gcm.setPBinder(pb);
        pb.setPClassMapping(gcm);
        PNamingContext pnc = getPNamingContext(destclassName, classLoader);
        logger.log(BasicLevel.DEBUG, "\tpnc=" + pnc);
        ((PClassMappingCtrl) gcm).setPNameCoder(pnc);
        return gcm;
      } catch (Exception e) {
        throw new SpeedoRuntimeException(e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.objectweb.jorm.naming.api.PNamingContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.