Package org.apache.tuscany.sca.core.assembly

Examples of org.apache.tuscany.sca.core.assembly.ActivationException


           
            //now that all system sca definitions have been read, lets resolve them right away
            definitionsProcessor.resolve(systemSCADefinitions,
                                         policyDefinitionsResolver);
        } catch ( Exception e ) {
            throw new ActivationException(e);
        }
    }
View Full Code Here


                Class<?> moduleClass = moduleDeclarator.loadClass();
                ModuleActivator module = (ModuleActivator)moduleClass.newInstance();
                modules.add(module);
            }
        } catch (IOException e) {
            throw new ActivationException(e);
        } catch (ClassNotFoundException e) {
            throw new ActivationException(e);
        } catch (InstantiationException e) {
            throw new ActivationException(e);
        } catch (IllegalAccessException e) {
            throw new ActivationException(e);
        }

        return modules;
    }
View Full Code Here

        // Create a contribution repository
        ContributionRepository repository;
        try {
            repository = new ContributionRepositoryImpl("target", inputFactory, monitor);
        } catch (IOException e) {
            throw new ActivationException(e);
        }

        ExtensibleURLArtifactProcessor documentProcessor = new ExtensibleURLArtifactProcessor(documentProcessors, monitor);

        // Create the contribution service
View Full Code Here

                // can be configured/used. None are yet but this would be the place to
                // get components out of the management domain and give them access to
                // useful parts of the node
           
            } else {
                throw new ActivationException("Can't find the management contribution on the classpath");
            }
        } catch(ActivationException ex) {
            throw ex;                       
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }

    }
View Full Code Here

            domain = new EmbeddedSCADomain(cl, domainName);  
            domain.start();
        } catch(ActivationException ex) {
            throw ex;                    
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }
       
        // add local information into the distributed domain
        this.distributedDomain.setNodeName(nodeName);
        this.distributedDomain.setManagementDomain(management);
View Full Code Here

           
            domain.getCompositeActivator().activate(composite);    
        } catch(ActivationException ex) {
            throw ex;           
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }            
    }
View Full Code Here

            loadContribution(domainName, contributionURL);
       
        } catch(ActivationException ex) {
            throw ex;
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }        
       
    }
View Full Code Here

        if ( url != null ) {
            try {
                SCADefinitions scaDefinitions = scaDocDefnProcessor.read(null, null, url);
                scaDocDefnProcessor.resolve(scaDefinitions, scaDocDefnProcessor.getDomainModelResolver());
            } catch ( ContributionReadException e ) {
                throw new ActivationException(e);
            } catch ( ContributionResolveException e ) {
                throw new ActivationException(e);
            }
        }
    }
View Full Code Here

                Class moduleClass = Class.forName(className, true, classLoader);
                ModuleActivator module = (ModuleActivator)moduleClass.newInstance();
                modules.add(module);
            }
        } catch (IOException e) {
            throw new ActivationException(e);
        } catch (ClassNotFoundException e) {
            throw new ActivationException(e);
        } catch (InstantiationException e) {
            throw new ActivationException(e);
        } catch (IllegalAccessException e) {
            throw new ActivationException(e);
        }

        return modules;
    }
View Full Code Here

        // Create a contribution repository
        ContributionRepository repository;
        try {
            repository = new ContributionRepositoryImpl("target");
        } catch (IOException e) {
            throw new ActivationException(e);
        }

        ExtensibleURLArtifactProcessor documentProcessor = new ExtensibleURLArtifactProcessor(documentProcessors);

        ContributionService contributionService =
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.assembly.ActivationException

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.