Examples of PBinder


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

            PolymorphicPNamingContext polymorphicPNC = (PolymorphicPNamingContext) pnc;
            //link the cache
            //cache null
            polymorphicPNC.setCache(this.cache);
            //instanciate a new binder
            PBinder delegatedBinder = getPBinder(className, hints, classLoader,
                mappingStructureRule, cn2binder, cn2pnc);
            //link a new instanciated and dedicated binder
            polymorphicPNC.setDelegatedBinder(delegatedBinder)
            delegatedBinder.setPClassMapping(pcm);
            delegatedBinder.setPType(pcm.getPType());
            //link the PClassMapping
            polymorphicPNC.setPcm(delegatedBinder.getBinderClassMapping());
          }
        } catch (Exception e) {
          throw new PException(e,
            "Impossible to instanciate the PNC of the class "
            + hints);
View Full Code Here

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

      logger.log(BasicLevel.DEBUG, "\thints=" + hints);
      try {
        PClassMapping gcm = (PClassMapping)
          Class.forName(getGCMClassName(mapper.getMapperName())).newInstance();
        logger.log(BasicLevel.DEBUG, "\tgcm=" + gcm);
        PBinder pb = findPBinder(cn, classLoader,hints);
        logger.log(BasicLevel.DEBUG, "\tbinder=" + pb);
        gcm.setPBinder(pb);
        pb.setPClassMapping(gcm);
        return gcm;
      } catch (Exception e) {
        throw new SpeedoRuntimeException(e.getMessage(), e);
      }
    }
View Full Code Here

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

      try {
        PClassMapping gcm = (PClassMapping)
          Class.forName(getGCMClassName(mapper.getMapperName())).newInstance();
        logger.log(BasicLevel.DEBUG, "getGenClassMapping(" + cn + ")");
        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) {
View Full Code Here

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

        throw personality.newUserRuntimeException("Impossible to decode the identifier "
          + oid + (clazz == null
          ? "" : " of the class " + clazz.getName()), e);
      }
    }
    PBinder binder = null;
    PName pn = null;
    try {
      if (clazz != null) {
        binder = getPBinder(clazz);
      }
      pn = nmf.decode(binder, oid, clazz, this);
    } catch (PException e) {
      throw personality.newUserRuntimeException("Impossible to decode the identifier "
        + oid + (clazz == null
        ? "" : " of the class " + clazz.getName()), e);
    }
    if (pn != null) {
      return pn;
    }
    if (binder != null) {
      return binder.decodeAbstract(oid, null);
    }
    throw personality.newUserRuntimeException("Impossible to decode the identifier "
      + oid + (clazz == null
      ? "" : " of the class " + clazz.getName()));
  }
View Full Code Here

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

    }
    //Load the Jorm Meta information
    loadJormSpeedoMI(className, classProperties, classLoader);

    // Fetch the Binder
    PBinder binder = findPBinder(className, classLoader,
      classProperties.getProperty(JormPathHelper.getPath(className)));
    pcm.setPBinder(binder);
    binder.setPClassMapping(pcm);

    // Fetch the PNC of the class
    PNameCoder classPnc = findPNameManager(
      className, classLoader, pcm, classProperties.getProperty(JormPathHelper.getPath(className))
    );
View Full Code Here

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

                      String hints) throws PException {
    if (hints == null || hints.length() == 0)
      throw new PException(
        "Impossible to get the PNamingContext of the class " + className
        + ": Specified binder class is not valid: " + hints);
    PBinder binder = (PBinder) binders.get(className);
    if (binder != null)
      return binder;
    binder = nmf.getNamingManager(hints, classLoader)
      .getPBinder(className, hints, classLoader,
        mappingStructuresRule, binders, pnamingContexts);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.