Package org.bladerunnerjs.model.engine

Examples of org.bladerunnerjs.model.engine.Node


  {
    Class<? extends Event> listenForEvent = Event.class;
    Event theEvent = new NodeReadyEvent();

    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
   
    observers.eventEmitted( theEvent, node);
   
View Full Code Here


  {
    Class<? extends Event> listenForEvent = AppDeployedEvent.class;
    Event theEvent = new AppDeployedEvent();

    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
   
    observers.eventEmitted( theEvent, node);
   
View Full Code Here

  {
    Class<? extends Event> listenForEvent = AppDeployedEvent.class;
    Event theEvent = new NodeReadyEvent();
   
    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
   
    observers.eventEmitted( theEvent, node);
   
View Full Code Here

  {
    Class<? extends Event> listenForEvent = AppDeployedEvent.class;
    Event theEvent = new Event(){};
   
    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
   
    observers.eventEmitted( theEvent, node);
   
View Full Code Here

    return Joiner.on("/").join(path);
  }
 
  private static String getAccessorMethod(Node node, Class<?> returnType)
  {
    Node parentNode = node.parentNode();
    String methodName = null;
   
    for(Method parentMethod : sortMethods(parentNode.getClass().getDeclaredMethods()))
    {
      Type methodReturnType = parentMethod.getGenericReturnType();
      Class<?> containedNodeClass = null;
     
      if(methodReturnType instanceof Class)
View Full Code Here

  }
 
  private String getTargetPath(File imageFile) throws ContentProcessingException
  {

    Node firstAncestorNode = brjs.locateFirstAncestorNode(imageFile);
    AssetLocation assetLocation  = null;
    AssetContainer assetContainer = null;
    if (firstAncestorNode instanceof AssetLocation){
       assetLocation = (AssetLocation)firstAncestorNode;
       assetContainer = assetLocation.assetContainer();
View Full Code Here

    fileModificationService.close();
  }
 
  public BundlableNode locateFirstBundlableAncestorNode(File file) throws InvalidBundlableNodeException
  {
    Node node = locateFirstAncestorNode(file, BundlableNode.class);
    BundlableNode bundlableNode = null;
   
    while((node != null) && (bundlableNode == null))
    {
      if(node instanceof BundlableNode)
      {
        bundlableNode = (BundlableNode) node;
      }
     
      node = node.parentNode();
    }
   
    if (bundlableNode == null) throw new InvalidBundlableNodeException( RelativePathUtility.get(getFileInfoAccessor(), dir(), file) );
   
    return bundlableNode;
View Full Code Here

    super(rootNode, parent, dir);
  }
 
  @Override
  public App app() {
    Node node = this.parentNode();
   
    while(!(node instanceof App) && node != null) {
      node = node.parentNode();
    }
   
    if (node == null) {
      AssetContainer assetContainer = root().locateAncestorNodeOfClass(dir().getParentFile(), AssetContainer.class);
      if (assetContainer != null) {
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.engine.Node

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.