Package org.jboss.dependency.spi

Examples of org.jboss.dependency.spi.ControllerMode


/*     */   {
/*  88 */     super(metaData.getObjectName().getCanonicalName(), ServiceControllerContextActions.getInstance());
/*  89 */     this.objectName = metaData.getObjectName();
/*  90 */     this.serviceContext.objectName = this.objectName;
/*  91 */     this.serviceController = serviceController;
/*  92 */     ControllerMode mode = metaData.getMode();
/*  93 */     this.serviceMetaData = metaData;
/*  94 */     if (mode == null)
/*  95 */       setMode(ControllerMode.MANUAL);
/*     */     else
/*  97 */       setMode(mode);
View Full Code Here


/* 55 */       if ("name".equals(localName))
/* 56 */         deployment.setName(attrs.getValue(i));
/* 57 */       else if ("scoped".equals(localName))
/* 58 */         deployment.setScoped(Boolean.valueOf(Boolean.parseBoolean(attrs.getValue(i))));
/* 59 */       else if ("mode".equals(localName))
/* 60 */         deployment.setMode(new ControllerMode(attrs.getValue(i)));
/*    */     }
/*    */   }
View Full Code Here

/* 57 */       if ("name".equals(localName))
/* 58 */         bean.setName(attrs.getValue(i));
/* 59 */       else if ("class".equals(localName))
/* 60 */         bean.setBean(attrs.getValue(i));
/* 61 */       else if ("mode".equals(localName))
/* 62 */         bean.setMode(new ControllerMode(attrs.getValue(i)));
/* 63 */       else if ("parent".equals(localName))
/* 64 */         bean.setParent(attrs.getValue(i));
/* 65 */       else if ("abstract".equals(localName))
/* 66 */         bean.setAbstract(Boolean.parseBoolean(attrs.getValue(i)));
/* 67 */       else if ("autowire-type".equals(localName))
View Full Code Here

/* 58 */       if ("name".equals(localName))
/* 59 */         bean.setName(attrs.getValue(i));
/* 60 */       else if ("class".equals(localName))
/* 61 */         bean.setBeanClass(attrs.getValue(i));
/* 62 */       else if ("mode".equals(localName))
/* 63 */         bean.setMode(new ControllerMode(attrs.getValue(i)));
/*    */     }
/*    */   }
View Full Code Here

/*  350 */           if ("name".equals(localName))
/*  351 */             bean.setName(attrs.getValue(i));
/*  352 */           else if ("class".equals(localName))
/*  353 */             bean.setBean(attrs.getValue(i));
/*  354 */           else if ("mode".equals(localName))
/*  355 */             bean.setMode(new ControllerMode(attrs.getValue(i)));
/*      */         }
/*      */       }
/*      */     });
/*  361 */     TypeBinding beanFactoryType = schemaBinding.getType(beanFactoryTypeQName);
/*  362 */     beanFactoryType.setHandler(new DefaultElementHandler()
/*      */     {
/*      */       public Object startElement(Object parent, QName name, ElementBinding element)
/*      */       {
/*  366 */         return new GenericBeanFactoryMetaData();
/*      */       }
/*      */
/*      */       public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/*      */       {
/*  371 */         GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)o;
/*  372 */         for (int i = 0; i < attrs.getLength(); i++)
/*      */         {
/*  374 */           String localName = attrs.getLocalName(i);
/*  375 */           if ("name".equals(localName))
/*  376 */             bean.setName(attrs.getValue(i));
/*  377 */           else if ("class".equals(localName))
/*  378 */             bean.setBeanClass(attrs.getValue(i));
/*  379 */           else if ("mode".equals(localName))
/*  380 */             bean.setMode(new ControllerMode(attrs.getValue(i)));
/*      */         }
/*      */       }
/*      */     });
/*  386 */     beanType.pushInterceptor(classloaderQName, new DefaultElementInterceptor()
/*      */     {
View Full Code Here

/* 1323 */     context.uninstall(fromState, toState);
/*      */   }
/*      */
/*      */   protected boolean advance(ControllerContext context)
/*      */   {
/* 1336 */     ControllerMode mode = context.getMode();
/*      */
/* 1339 */     if (ControllerMode.DISABLED.equals(mode)) {
/* 1340 */       return false;
/*      */     }
/* 1342 */     ControllerState fromState = context.getState();
View Full Code Here

/*  98 */     return this;
/*     */   }
/*     */
/*     */   public BeanMetaDataBuilder setMode(String modeString)
/*     */   {
/* 103 */     return setMode(new ControllerMode(modeString));
/*     */   }
View Full Code Here

/* 129 */     String modeString = serverElement.getAttribute("mode");
/* 130 */     if (modeString != null)
/*     */     {
/* 132 */       modeString = modeString.trim();
/* 133 */       if (modeString.length() != 0)
/* 134 */         this.serverMode = new ControllerMode(modeString);
/*     */     }
/*     */   }
View Full Code Here

/* 152 */     service.setObjectName(mbeanName);
/*     */
/* 154 */     String code = parseCode(mbeanName, mbeanElement);
/* 155 */     service.setCode(code);
/*     */
/* 157 */     ControllerMode mode = parseMode(mbeanName, mbeanElement);
/* 158 */     if (mode == null)
/* 159 */       mode = this.serverMode;
/* 160 */     service.setMode(mode);
/*     */
/* 162 */     ServiceConstructorMetaData constructor = parseConstructor(mbeanName, mbeanElement, replace);
View Full Code Here

/* 404 */     if (modeString == null)
/* 405 */       return null;
/* 406 */     modeString = modeString.trim();
/* 407 */     if (modeString.length() == 0)
/* 408 */       return null;
/* 409 */     return new ControllerMode(modeString);
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.dependency.spi.ControllerMode

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.