Examples of Aspect


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

Examples of ch.ethz.prose.Aspect

    }
  }

  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

Examples of ch.ethz.prose.Aspect

      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

Examples of ch.ethz.prose.Aspect

    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

Examples of ch.ethz.prose.Aspect

        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

Examples of ch.ethz.prose.Aspect

  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

Examples of ch.ethz.prose.Aspect

    }
    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

Examples of ch.ethz.prose.Aspect

    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

Examples of com.massivecraft.mcore.Aspect

  }
 
  @Override
  public void perform()
  {
    Aspect aspect = this.arg(0, ARAspect.get());
    if (aspect == null) return;
   
    Multiverse multiverse = this.arg(1, ARMultiverse.get());
    if (multiverse == null) return;
   
    aspect.setMultiverse(multiverse);
   
    msg("<g>The aspect <h>%s<g> now use multiverse <h>%s<g>.", aspect.getId(), multiverse.getId());
  }
View Full Code Here

Examples of com.massivecraft.mcore.Aspect

  }
 
  @Override
  public void perform()
  {
    Aspect aspect = this.arg(0, ARAspect.get());
    if (aspect == null) return;
   
    msg(Txt.titleize("Aspect: "+aspect.getId()));
    msg("<k>using multiverse: <v>%s",aspect.getMultiverse().getId());
   
    for (String descLine : aspect.getDesc())
    {
      msg(descLine);
    }
  }
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.