Examples of DomainRegistry


Examples of com.sun.enterprise.admin.common.domains.registry.DomainRegistry

  public String[] getAllDomainRoots() {
    Vector vt = new Vector();
        String[] domains = null;
        try
        {
            DomainRegistry domainRegistry = DomainRegistry.newInstance();
            Iterator it = domainRegistry.iterator();
            while (it.hasNext())
            {
                DomainEntry entry = (DomainEntry)it.next();
                vt.addElement(entry.getRoot().getPath());
            }
View Full Code Here

Examples of com.sun.enterprise.admin.common.domains.registry.DomainRegistry

    public DomainEntry[] listDomains() throws ControlException
    {
        DomainEntry[] domains = null;
    try
    {
      DomainRegistry domainRegistry = DomainRegistry.newInstance();
            int size = domainRegistry.size();
            domains = new DomainEntry[size];
      Iterator innerIter = domainRegistry.iterator();
            int i = 0;
            while (innerIter.hasNext())
            {
                domains[i++] = (DomainEntry)innerIter.next();
            }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

   * @return - the DomainRegistry containing the Endpoint with the supplied URI - null if no
   *           such DomainRegistry can be found
   */
  private DomainRegistry getEndpointRegistry(String uri) {
    ExtensionPointRegistry registry   = null;
    DomainRegistry domainRegistry = null;
   
    CompositeContext context = CompositeContext.getCurrentCompositeContext();
    if( context == null && requestEndpoint != null ) context = requestEndpoint.getCompositeContext();
    if( context != null ) {
      registry = context.getExtensionPointRegistry();
      domainRegistry = getEndpointRegistry( registry );
      if( domainRegistry != null ) {
        this.registry = registry;
        return domainRegistry;
      } // end if
    } // end if
   
    // Deal with the case where there is no context available
      for(ExtensionPointRegistry r : ExtensionPointRegistryLocator.getExtensionPointRegistries()) {
                registry = r;
        if( registry != null ) {
          // Find the actual Endpoint in the DomainRegistry
            domainRegistry = getEndpointRegistry( registry );
               
                if( domainRegistry != null ) {
                    for( Endpoint endpoint : domainRegistry.findEndpoint(uri) ) {
                      // TODO: For the present, simply return the first registry with a matching endpoint
                      this.registry = registry;
                      return domainRegistry;
                    } // end for
                } // end if
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

        } // end if
       
        // if there was no domainName to match, simply return the first DomainRegistry if there is one...
       
        if (domainRegistryFactory.getEndpointRegistries().size() > 0){
            DomainRegistry domainRegistry = (DomainRegistry) domainRegistryFactory.getEndpointRegistries().toArray()[0];
            return domainRegistry;
        } else {
            return null;
        }
       
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

    // Get the DomainRegistry
        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(registry);
        if( domainRegistryFactory == null ) return null;
       
        // TODO: For the moment, just use the first (and only!) DomainRegistry...
        DomainRegistry domainRegistry = (DomainRegistry) domainRegistryFactory.getEndpointRegistries().toArray()[0];
        if( domainRegistry == null ) return null;
       
        for( EndpointReference epReference : domainRegistry.getEndpointReferences() ) {
          // TODO: For the present, simply return the first matching endpointReference
          if( epReference.getURI().equals(epr.getURI()) ) {
              return (RuntimeEndpointReferenceImpl) epReference;
          } // end if
        } // end for
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

    public LocalDomainRegistryFactory(ExtensionPointRegistry registry) {
        super(registry);
    }

    protected DomainRegistry createEndpointRegistry(String endpointRegistryURI, String domainURI) {
        DomainRegistry domainRegistry =
            new DomainRegistryImpl(registry, endpointRegistryURI, domainURI);
        return domainRegistry;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

     
      // Store the new callback EPR into the Endpoint
      this.getCallbackEndpointReferences().add(asyncEPR);
     
      // Also store the callback EPR into the DomainRegistry
      DomainRegistry epReg = getEndpointRegistry( registry );
      if( epReg != null ) epReg.addEndpointReference(asyncEPR);
    } // end method createAsyncServerCallback
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

     * @param registry - the main extension point Registry
     * @return the corresponding Endpoint from the DomainRegistry, or null if no match can be found
     */
    private RuntimeEndpointImpl findActualEP(RuntimeEndpointImpl ep,
      ExtensionPointRegistry registry) {
    DomainRegistry domainRegistry = getEndpointRegistry( registry );
       
        if( domainRegistry == null ) return null;
       
        for( Endpoint endpoint : domainRegistry.findEndpoint(ep.getURI()) ) {
          // TODO: For the present, simply return the first matching endpoint
          return (RuntimeEndpointImpl) endpoint;
        } // end for
       
    return null;
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(registry);
       
        if( domainRegistryFactory == null ) return null;
       
        // TODO: For the moment, just use the first (and only!) DomainRegistry...
        DomainRegistry domainRegistry = (DomainRegistry) domainRegistryFactory.getEndpointRegistries().toArray()[0];
     
      return domainRegistry;
    } // end method
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry

                    this.compositeActivator = utilities.getUtility(CompositeActivator.class);

                    domainComposite = nodeFactory.configureNode(configuration, contributions, context);

                    DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(nodeFactory.registry);
                    DomainRegistry domainRegistry =
                        domainRegistryFactory.getEndpointRegistry(configuration.getDomainRegistryURI(), configuration.getDomainURI());

                    this.compositeContext =
                        new CompositeContext(nodeFactory.registry,
                                             domainRegistry,
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.