Package ch.ethz.prose

Examples of ch.ethz.prose.Aspect


    for (int i=0; i < pasteList.size(); i++) {
      AspectSurrogate aspectSur = (AspectSurrogate)pasteList.get(i);
      if (alreadyContained.contains(aspectSur))
        continue;

      Aspect realAsp = null;
      try {
        String[] execArgs = CommandlineProseClient.insertScriptCommandline(parentModel.getClasspath(),
            aspectSur.getAspectClassName(),
            aspectSur.getAssociatedObject(),
            address,
View Full Code Here


    }
  }

  public void withdraw(AspectSurrogate ext,Object txId) throws RemoteException,ClassNotFoundException {
    init();
    Aspect asp = qMgr.reconstructAspect(ext);

    List x = new Vector((extMgr.getAllAspects()));
    int extIndx = x.indexOf(asp);
    if (extIndx >= 0) {
      if (txId == null) {
View Full Code Here

      if ( !("NONE".equals(aspectToInsert))) {
        // we have to insert an aspect
        // assumption : no constructor
        Class cls = Class.forName(aspectToInsert);
        Aspect aspect = (Aspect)cls.newInstance();
        if (insertId != null)
          aspect.associateTo(insertId);

        // obtain remote prose reference
        if (transactionId == null)
          ram.insert(aspect);
        else
View Full Code Here

    HashSet result = new HashSet();
    Iterator i = aspectList.iterator();
    while (i.hasNext()) {
      AspectSurrogate as = (AspectSurrogate)i.next();
      Aspect crtAspect = reconstructAspect(as);
      if (crtAspect != null) {
        Iterator j = crtAspect.getCrosscuts().iterator();
        if (!j.hasNext())  result.add(createTuple(as,null,null,selectFields));
        while (j.hasNext()) {
          Crosscut crtCrosscut = (Crosscut)j.next();
          Iterator k =  jpMgr.getJoinpoints(crtCrosscut).iterator();
          CrosscutSurrogate cs = new CrosscutSurrogate(as,crtCrosscut);
View Full Code Here

        JoinPointRequestSurrogate jprs = (JoinPointRequestSurrogate)i.next();
        JoinPointRequest jpr = reconstructRequest(jprs);
        Iterator j  = jpMgr.getCrosscuts(jpr).iterator();
        while (j.hasNext()) {
          Crosscut crtCrosscut = (Crosscut)j.next();
          Aspect crtAspect   = crtCrosscut.getOwner();
          result.add(createTuple(crtAspect,crtCrosscut,jprs,selectFields));
        }
      }

      // The following exception are CAUGHT and not propagated. The
View Full Code Here

  public Aspect reconstructAspect(AspectSurrogate as) {
    List lst = aspectMgr.getAllAspects();
    Iterator i = lst.iterator();
    while (i.hasNext()) {
      Aspect crtAsp = (Aspect)(i.next());
      if (crtAsp.getAssociatedObject().equals(as.getAssociatedObject()) &&
          crtAsp.getClass().getName().equals(as.getAspectClassName()))
        return crtAsp;
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  protected Crosscut reconstructCrosscut(CrosscutSurrogate cs) throws ClassNotFoundException {
    Aspect a = reconstructAspect(cs.getOwnerSurrogate());
    if (a == null)
      return null;
    return (Crosscut)a.getCrosscuts().get(cs.getIndex());
  }
View Full Code Here

    if (aspectToInsert == null) {
      return;
    }

    if (useProse) {
      Aspect x = null;
      ProseSystem.startup();

      if ("EfficientExtension".equals(aspectToInsert))
        x  = new EfficientExtension();
      else if ("EfficientEntryExtension".equals(aspectToInsert))
View Full Code Here

TOP

Related Classes of ch.ethz.prose.Aspect

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.