public Object run(Domain param) throws PropertyVetoException, TransactionFailure { ServiceProvisioningEngines spes = param.createChild(ServiceProvisioningEngines.class); param.getExtensions().add(spes); return spes; } }, domain) == null) {
@Override public Object run(Domain wDomain) throws PropertyVetoException, TransactionFailure { Virtualizations v = wDomain.createChild(Virtualizations.class); wDomain.getExtensions().add(v); return v; } }, domain);
public Object run(Domain param) throws PropertyVetoException, TransactionFailure { PaasApplications paasApplications = param.createChild(PaasApplications.class); param.getExtensions().add(paasApplications); return paasApplications; } }, domain) == null) {
@Override public Object run(Domain wDomain) throws PropertyVetoException, TransactionFailure { ElasticServices es = wDomain.createChild(ElasticServices.class); wDomain.getExtensions().add(es); return es; } }, domain);
@Override public Object run(Domain wDomain) throws PropertyVetoException, TransactionFailure { Virtualizations virts = wDomain.createChild(Virtualizations.class); wDomain.getExtensions().add(virts); return virts; } }, domain);
public Object run(Domain param) throws PropertyVetoException, TransactionFailure { Services services = param.createChild(Services.class); param.getExtensions().add(services); return services; } }, domain) == null) {
@Override public Object run(Domain wDomain) throws PropertyVetoException, TransactionFailure { Virtualizations v = wDomain.createChild(Virtualizations.class); wDomain.getExtensions().add(v); return v; } }, domain);
public Object run(Domain d) throws PropertyVetoException, TransactionFailure { Nodes nodes=d.createChild(Nodes.class); Transaction t = Transaction.getTransaction(d); if (t==null) return null; createDefaultNode(d, nodes); d.setNodes(nodes); return null; } }, domain);
public Object run(Domain d) throws PropertyVetoException, TransactionFailure { Nodes nodes=d.createChild(Nodes.class); Transaction t = Transaction.getTransaction(d); if (t==null) return null; createDefaultNode(d, nodes); d.setNodes(nodes); return null; } }, domain);
SecureAdmin writableSecureAdmin() throws TransactionFailure { if (secureAdmin_w == null) { /* * Create the secure admin node if it is not already there. */ SecureAdmin secureAdmin = d.getSecureAdmin(); if (secureAdmin == null) { secureAdmin_w = d.createChild(SecureAdmin.class); d.setSecureAdmin(secureAdmin_w); } else { /* * It already existed, so join it to the transaction. */ secureAdmin_w = t.enroll(secureAdmin); } } return secureAdmin_w; } }
@Override public Object run(Domain writeableDomain) throws PropertyVetoException, TransactionFailure { ConfigBeanProxy child = writeableDomain.createChild(type); Dom domDomain = Dom.unwrap(writeableDomain); final String elementName; try { elementName = GenericCrudCommand.elementName(domDomain.document, Domain.class, type); } catch (ClassNotFoundException e) { throw new TransactionFailure(e.toString()); } if (elementName==null) { String msg = localStrings.getLocalString(TypeResolver.class, "TypeResolver.no_element_of_that_type", "The Domain configuration does not have a sub-element of the type {0}", type.getSimpleName()); throw new TransactionFailure(msg); } domDomain.setNodeElements(elementName, Dom.unwrap(child)); // add to the habitat habitat.addIndex(new ExistingSingletonInhabitant<ConfigBeanProxy>(child), type.getName(), null); return child; } }, domain));
@Override public Object run(Domain writeableDomain) throws PropertyVetoException, TransactionFailure { ConfigBeanProxy child = writeableDomain.createChild(type); Dom domDomain = Dom.unwrap(writeableDomain); final String elementName; try { elementName = GenericCrudCommand.elementName(domDomain.document, Domain.class, type); } catch (ClassNotFoundException e) { throw new TransactionFailure(e.toString()); } if (elementName==null) { String msg = localStrings.getLocalString(TypeResolver.class, "TypeResolver.no_element_of_that_type", "The Domain configuration does not have a sub-element of the type {0}", type.getSimpleName()); throw new TransactionFailure(msg); } domDomain.setNodeElements(elementName, Dom.unwrap(child)); // add to the habitat ServiceLocatorUtilities.addOneConstant(habitat, child, null, type); return child; } }, domain));
SecureAdmin writableSecureAdmin() throws TransactionFailure { if (secureAdmin_w == null) { /* * Create the secure admin node if it is not already there. */ SecureAdmin secureAdmin = d.getSecureAdmin(); if (secureAdmin == null) { secureAdmin_w = writableDomain().createChild(SecureAdmin.class); writableDomain().setSecureAdmin(secureAdmin_w); } else { /* * It already existed, so join it to the transaction. */ secureAdmin_w = t.enroll(secureAdmin); } } return secureAdmin_w; } }
public Object run(Domain d) throws PropertyVetoException, TransactionFailure { Nodes nodes=d.createChild(Nodes.class); Transaction t = Transaction.getTransaction(d); if (t==null)
public Object run(Domain d) throws PropertyVetoException, TransactionFailure { Nodes nodes=d.createChild(Nodes.class); Transaction t = Transaction.getTransaction(d); if (t==null)