Package org.jboss.dependency.spi

Examples of org.jboss.dependency.spi.Controller.addAlias()


            Controller controller = context.getController();
            if (addAlias)
            {
               try
               {
                  controller.addAlias(contextName, context.getName());
               }
               catch (Throwable t)
               {
                  throw new RuntimeException("Error adding deployment alias " + contextName + " to " + context, t);
               }
View Full Code Here


            Controller controller = context.getController();
            if (addAlias)
            {
               try
               {
                  controller.addAlias(contextName, context.getName());
               }
               catch (Throwable t)
               {
                  throw new RuntimeException("Error adding deployment alias " + contextName + " to " + context, t);
               }
View Full Code Here

            Controller controller = context.getController();
            if (addAlias)
            {
               try
               {
                  controller.addAlias(contextName, context.getName());
               }
               catch (Throwable t)
               {
                  throw new RuntimeException("Error adding deployment alias " + contextName + " to " + context, t);
               }
View Full Code Here

         if (annotation.replace())
            alias = StringPropertyReplacer.replaceProperties(alias);

         if (aliases == null || aliases.contains(alias) == false)
         {
            controller.addAlias(alias, beanMetaData.getName());
         }
      }
      // no metadata added
      return null;
   }
View Full Code Here

      if (aliases != null && aliases.isEmpty() == false)
      {
         Controller controller = getUtil().getKernel().getController();
         for (NamedAliasMetaData namd : aliases)
         {
            controller.addAlias(namd.getAliasValue(), namd.getName());
         }
      }
   }
}
View Full Code Here

         ScopedAliasControllerContext.addAlias("simple", "simple1", sk1, controller);

         ScopeKey sk3 = new ScopeKey(new Scope[]{new Scope(CommonLevels.DEPLOYMENT, "deployment3"), new Scope(CommonLevels.APPLICATION, "testApp")});
         ScopedAliasControllerContext.addAlias("simple", "simple3", sk3, controller);

         controller.addAlias("simple", "simple-main");
      }
      catch (Throwable t)
      {
         throw new Exception(t);
      }
View Full Code Here

   }

   protected void installAlias() throws Throwable
   {
      Controller controller = getUtil().getKernel().getController();
      controller.addAlias("MyAlias", "OriginalBean");
   }
}
View Full Code Here

            Controller controller = context.getController();
            if (addAlias)
            {
               try
               {
                  controller.addAlias(contextName, context.getName());
               }
               catch (Throwable t)
               {
                  throw new RuntimeException("Error adding deployment alias " + contextName + " to " + context, t);
               }
View Full Code Here

            Controller controller = context.getController();
            if (addAlias)
            {
               try
               {
                  controller.addAlias(contextName, context.getName());
               }
               catch (Throwable t)
               {
                  throw new RuntimeException("Error adding deployment alias " + contextName + " to " + context, t);
               }
View Full Code Here

            Controller controller = context.getController();
            if (addAlias)
            {
               try
               {
                  controller.addAlias(contextName, context.getName());
               }
               catch (Throwable t)
               {
                  throw new RuntimeException("Error adding deployment alias " + contextName + " to " + context, t);
               }
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.