Package org.apache.muse.core.descriptor

Examples of org.apache.muse.core.descriptor.RouterDefinition


    //
    // one router used to map all resource types...
    //
    // Ignored - OSGi Router mandated by default plugin
    RouterDefinition localRouter;
    if (_routerDefinition == null)
      _localRouterDefinition = _routerDefinition = createRouterDefinition(root, environment);
    else
      _localRouterDefinition = createRouterDefinition(root, environment);
   
View Full Code Here


            //
            // create the router, which will instantiate resources that
            // are specified in the deployment descriptor (using the
            // /muse/resource-type/@instances-at-startup attribute)
            //
            RouterDefinition routerDefinition = dd.getRouterDefinition();
            _router = routerDefinition.newInstance();
           
            _router.initialize();
            _hasBeenInitialized = true;
        }
       
View Full Code Here

      //
      // check for any specified router - this may be used
      // as a delegate when trying to resolve a reference
      // to a resource
      //
      RouterDefinition rd = dd.getRouterDefinition();
      Class delegateRouter = rd.getRouterClass();
      ResourceRouter delegate = null;
     
      //initialize persistence for router
      PersistenceDefinition persistenceDef = rd.getPersistenceDefinition();
      if(delegateRouter != null){
        delegate = rd.newInstance();
     
        if(persistenceDef != null){
                RouterPersistence persistence = (RouterPersistence)persistenceDef.newInstance();
                delegate.setPersistence(persistence);
        }       
View Full Code Here

            //
            // create the router, which will instantiate resources that
            // are specified in the deployment descriptor (using the
            // /muse/resource-type/@instances-at-startup attribute)
            //
            RouterDefinition routerDefinition = dd.getRouterDefinition();
            _router = routerDefinition.newInstance();
           
            _router.initialize();
            _hasBeenInitialized = true;
        }
       
View Full Code Here

    //
    // one router used to map all resource types...
    //
    // Ignored - OSGi Router mandated by default plugin
    RouterDefinition localRouter;
    if (_routerDefinition == null)
      _localRouterDefinition = _routerDefinition = createRouterDefinition(root, environment);
    else
      _localRouterDefinition = createRouterDefinition(root, environment);
   
View Full Code Here

      //
      // check for any specified router - this may be used
      // as a delegate when trying to resolve a reference
      // to a resource
      //
      RouterDefinition rd = dd.getRouterDefinition();
      Class delegateRouter = rd.getRouterClass();
      ResourceRouter delegate = null;
     
      //initialize persistence for router
      PersistenceDefinition persistenceDef = rd.getPersistenceDefinition();
      if(delegateRouter != null){
        delegate = rd.newInstance();
     
        if(persistenceDef != null){
                RouterPersistence persistence = (RouterPersistence)persistenceDef.newInstance();
                delegate.setPersistence(persistence);
        }       
View Full Code Here

TOP

Related Classes of org.apache.muse.core.descriptor.RouterDefinition

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.