ConfigBeanProxy child = param.createChild(childType); Dom dom = Dom.unwrap(child);
@Override public Object run(ConfigBeanProxy parent) throws PropertyVetoException, TransactionFailure { U child = parent.createChild(childElement); Dom unwrappedChild = Dom.unwrap(child); unwrappedChild.addDefaultChildren(); configModularityUtils.getExtensions(parent).add(child); return child; } }, extensionOwner);
/** * Adds a property with the specified name and value to a writable config * object. * @param <T> the type of the config object * @param propName name of the property to add * @param propValue value of the property to add * @param owner_w the owning config object * @return the added Property object * @throws TransactionFailure * @throws PropertyVetoException */ private <T extends PropertyBag & ConfigBeanProxy> Property addProperty( final String propName, final String propValue, final T owner_w) throws TransactionFailure, PropertyVetoException { final Property p = owner_w.createChild(Property.class); p.setName(propName); p.setValue(propValue); owner_w.getProperty().add(p); return p; }
/** * Adds a property with the specified name and value to a writable config * object. * @param <T> the type of the config object * @param propName name of the property to add * @param propValue value of the property to add * @param owner_w the owning config object * @return the added Property object * @throws TransactionFailure * @throws PropertyVetoException */ private <T extends PropertyBag & ConfigBeanProxy> Property addProperty( final String propName, final String propValue, final T owner_w) throws TransactionFailure, PropertyVetoException { final Property p = owner_w.createChild(Property.class); p.setName(propName); p.setValue(propValue); owner_w.getProperty().add(p); return p; }
ConfigBeanProxy child = (ConfigBeanProxy) component; try { ConfigBeanProxy cc = child.createChild(itemType); new InjectionManager().inject(cc, itemType, new InjectionResolver<Attribute>(Attribute.class) {
ConfigBeanProxy child = (ConfigBeanProxy) component; try { ConfigBeanProxy cc = child.createChild(itemType); new InjectionManager().inject(cc, itemType, new InjectionResolver<Attribute>(Attribute.class) {
if (property == null) { ConfigBeanProxy lcProxy = transaction.enroll(lc); property = lcProxy.createChild(Property.class); property.setName(propertyName); property.setValue(String.valueOf((new Date()).getTime()));
ConfigBeanProxy child = param.createChild(childType); Dom dom = Dom.unwrap(child);
ConfigBeanProxy child = param.createChild(childType); Dom dom = Dom.unwrap(child);
ConfigBeanProxy child = param.createChild(childType); Dom dom = Dom.unwrap(child);
if (property == null) { ConfigBeanProxy lcProxy = transaction.enroll(lc); property = lcProxy.createChild(Property.class); property.setName(propertyName); property.setValue(String.valueOf((new Date()).getTime()));
ConfigBeanProxy child = param.createChild(childType); Dom dom = Dom.unwrap(child);
if(resource instanceof ConfigBeanProxy) { try { Property newProp = ((ConfigBeanProxy) resource).createChild(Property.class); newProp.setName(prop.getName()); newProp.setValue(prop.getValue());
public Object run(ConfigBeanProxy writableParent) throws PropertyVetoException, TransactionFailure { ConfigBeanProxy childBean = writableParent.createChild(targetType); manager.inject(childBean, targetType, getInjectionResolver());
ConfigBeanProxy childBean = writableParent.createChild(targetType); manager.inject(childBean, targetType, getInjectionResolver());
ApplicationRef appRef = servr_w.createChild(ApplicationRef.class); setAppRefAttributes(appRef, deployParams); ((Server)servr_w).getApplicationRef().add(appRef); ApplicationRef appRef = cluster_w.createChild(ApplicationRef.class); setAppRefAttributes(appRef, deployParams); ((Cluster)cluster_w).getApplicationRef().add(appRef); ApplicationRef appRef2 = svr_w.createChild(ApplicationRef.class); setAppRefAttributes(appRef2, deployParams); ((Server)svr_w).getApplicationRef().add(appRef2);
ApplicationRef appRef = servr_w.createChild(ApplicationRef.class); setAppRefAttributes(appRef, deployParams); ((Server)servr_w).getApplicationRef().add(appRef); ApplicationRef appRef = cluster_w.createChild(ApplicationRef.class); setAppRefAttributes(appRef, deployParams); ((Cluster)cluster_w).getApplicationRef().add(appRef); ApplicationRef appRef2 = svr_w.createChild(ApplicationRef.class); setAppRefAttributes(appRef2, deployParams); ((Server)svr_w).getApplicationRef().add(appRef2);
try { ConfigBeanProxy domainProxy = transaction.enroll(domain); lbconfigs = domainProxy.createChild(LbConfigs.class); ((Domain) domainProxy).getExtensions().add(lbconfigs); transaction.commit();
try { ConfigBeanProxy domainProxy = transaction.enroll(domain); lbconfigs = domainProxy.createChild(LbConfigs.class); ((Domain) domainProxy).getExtensions().add(lbconfigs); transaction.commit();
Application app = apps_w.createChild( Application.class); app.setName(connectorModule.getName()); Application app = apps_w.createChild( Application.class); app.setName(ejbModule.getName()); Application app = apps_w.createChild( Application.class); app.setName(webModule.getName()); Application app = apps_w.createChild( Application.class); app.setName(appclientModule.getName()); Application app = apps_w.createChild( Application.class); app.setName(j2eeApp.getName()); Application app = apps_w.createChild( Application.class); app.setName(lifecycleModule.getName()); SystemApplications systemApps = domain_w.createChild( SystemApplications.class); ((Domain)domain_w).setSystemApplications(systemApps);