Package org.jboss.mx.loading.LoaderRepositoryFactory

Examples of org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig


   {
      ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
      if (classLoadingMetaData != null)
         return;
     
      LoaderRepositoryConfig loaderConfig = deployment.getLoaderRepositoryConfig();
      if (loaderConfig == null)
         return;

      LoaderRepositoryConfigHelper.create(unit, loaderConfig);
   }
View Full Code Here


         throw new IllegalArgumentException("Null deployment name");
      if (loaderMetaData == null)
         throw new IllegalArgumentException("Null loader repository metadata");

     
      LoaderRepositoryConfig repositoryConfig = new LoaderRepositoryConfig();
     
      repositoryConfig.repositoryClassName = loaderMetaData.getLoaderRepositoryClass();
      if (repositoryConfig.repositoryClassName == null || repositoryConfig.repositoryClassName.length() == 0)
         repositoryConfig.repositoryClassName = ServerConstants.DEFAULT_SCOPED_REPOSITORY_CLASS;
View Full Code Here

         if( loaders.getLength() > 0 )
         {
            Element loader = (Element) loaders.item(0);
            try
            {
               LoaderRepositoryConfig config = LoaderRepositoryFactory.parseRepositoryConfig(loader);
               unit.addAttachment(LoaderRepositoryConfig.class, config);
            }
            catch (Exception e)
            {
               throw DeploymentException.rethrowAsDeploymentException("Unable to parse loader repository config", e);
View Full Code Here

   {
      ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
      if (classLoadingMetaData != null)
         return;

      LoaderRepositoryConfig config = metaData.getLoaderRepositoryConfig();
      if (config != null)
         LoaderRepositoryConfigHelper.create(unit, config);
   }
View Full Code Here

   {
      ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
      if (classLoadingMetaData != null)
         return;
     
      LoaderRepositoryConfig loaderConfig = deployment.getLoaderRepositoryConfig();
      if (loaderConfig == null)
         return;

      LoaderRepositoryConfigHelper.create(unit, loaderConfig);
   }
View Full Code Here

  * @param di
  * the deployment info passed to deploy
  * @throws Exception
  */
  protected void initLoaderRepository(DeploymentInfo di) throws Exception {
    LoaderRepositoryConfig lrConfig = new LoaderRepositoryFactory.LoaderRepositoryConfig();
    lrConfig.repositoryName = new ObjectName("org.servicemix:loader-repository=JBIContainer");
    di.setRepositoryInfo(lrConfig);
  }
View Full Code Here

         throw new IllegalArgumentException("Null deployment name");
      if (loaderMetaData == null)
         throw new IllegalArgumentException("Null loader repository metadata");

     
      LoaderRepositoryConfig repositoryConfig = new LoaderRepositoryConfig();
     
      repositoryConfig.repositoryClassName = loaderMetaData.getLoaderRepositoryClass();
      if (repositoryConfig.repositoryClassName == null || repositoryConfig.repositoryClassName.length() == 0)
         repositoryConfig.repositoryClassName = ServerConstants.DEFAULT_SCOPED_REPOSITORY_CLASS;
View Full Code Here

      origUrl = current.url;
      repositoryConfig = current.repositoryConfig;
      if( parent == null )
      {
         if( repositoryConfig == null )
            repositoryConfig = new LoaderRepositoryConfig();
         // Make sure the specified LoaderRepository exists.
         LoaderRepositoryFactory.createLoaderRepository(server, repositoryConfig);
         log.debug("createLoaderRepository from config: "+repositoryConfig);
         // the classes are passed to a UCL that will share the classes with the whole base
        
View Full Code Here

   /** The the class loader repository name of the top most DeploymentInfo
    */
   public LoaderRepositoryConfig getTopRepositoryConfig()
   {
      LoaderRepositoryConfig topConfig = repositoryConfig;
      DeploymentInfo info = this;
      while( info.parent != null )
      {
         info = info.parent;
         topConfig = info.repositoryConfig;
View Full Code Here

      ServiceDeployment parsed = new ServiceDeployment();

      List<ServiceDeploymentClassPath> classPaths = parseXMLClasspath(document);
      parsed.setClassPaths(classPaths);

      LoaderRepositoryConfig repository = parseLoaderRepositoryConfig(document);
      if (repository != null)
         parsed.setLoaderRepositoryConfig(repository);

      // We can't parse the services yet, because it requires the classloader
      parsed.setConfig(document.getDocumentElement());
View Full Code Here

TOP

Related Classes of org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig

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.