@Override public void run() { WorkManager wm = new WorkManager(ic.es, 2); wm.execute(new InjectMethods(this)); wm.execute(new InjectFields(this)); wm.awaitCompletion(); new InjectMethods(this).run(); new InjectFields(this).run(); }
public static ConfigBeanProxy deepCopy(ConfigBeanProxy self, ConfigBeanProxy parent) throws TransactionFailure { ConfigBean configBean = (ConfigBean) Dom.unwrap(self); // ensure the parent is locked Transaction t = Transaction.getTransaction(parent); if (t==null) { throw new TransactionFailure("Must use a locked parent config object for copying new config object"); } ConfigBean copy = configBean.copy(configBean.parent()); return t.enroll(copy.createProxy()); }
private void onEmptyElement() throws XMLStreamException { state = SEEN_ELEMENT; if (depth > 0) { super.writeCharacters("\n"); } doIndent(); }
/** * Gets the value of the sfsbPersistenceType property. * * Specifies the passivation mechanism for stateful session beans that do * not have availability enabled. Default is "file". * * @return possible object is * {@link String } */ @Attribute (defaultValue="file") String getSfsbPersistenceType();
public DomDocument parse(XMLStreamReader in) throws XMLStreamException { DomDocument document = new DomDocument(habitat); parse(in, document); return document; }
/** * Returns the type of configuration object this config proxy represents. * @param element is the configuration object * @return the configuration interface class */ public static <T extends ConfigBeanProxy> Class<T> proxyType(T element) { ConfigView bean = getImpl(element); return bean.getProxyType(); }
/** * Allocate a new ConfigBean object as part of the Transaction * associated with this configuration object. This will eventually * be moved to a factory. * * @param type the request configuration object type * @return the properly constructed configuration object */ public ConfigBean allocate(Class<?> type) { return (ConfigBean) document.make(getHabitat(), null, this, document.buildModel(type)); }
@Override public ConfigBean make(final ServiceLocator habitat, XMLStreamReader xmlStreamReader, ConfigBean dom, ConfigModel configModel) { ConfigBean configBean = new ConfigBean(habitat,this, dom, configModel, xmlStreamReader); configBean.addInterceptor(Object.class, new OnDeleteCascade()); return configBean; } }
public void set(Dom dom, Object arg) { Dom child = toDom(arg); if(child==null) // remove dom.setNodeElements(xmlName); else // replace dom.setNodeElements(xmlName,child); } }
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { onStartElement(); super.writeStartElement(prefix, localName, namespaceURI); }
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException { onEmptyElement(); super.writeEmptyElement(namespaceURI, localName); }
/** * Performs translation with null pass-through. */ private String t(String s) { if(s==null) return null; return document.getTranslator().translate(s); }
public void writeEndElement() throws XMLStreamException { onEndElement(); super.writeEndElement(); }
@Override public String toString() { return "Dom.NodeChild(" + dom.getImplementation() + "," + super.toString() + ")"; } }
public void writeCData(String data) throws XMLStreamException { state = SEEN_DATA; super.writeCData(data); } }
@Override public Object get(Dom dom, Type rt) { Object value = super.get(dom, rt); if (value == null) return (dv); return value; } public String getDefaultValue() {
/** * Gets the value of the sfsbQuickCheckpointEnabled property. * * This attribute is deprecated and will be ignored if present. * * @return possible object is * {@link String } */ @Attribute String getSfsbQuickCheckpointEnabled();
/** * Parses the given source as a config file, and adds resulting * {@link Dom}s into {@link Habitat} as {@link Inhabitant}s. */ public DomDocument parse(URL source) { return parse(source, new DomDocument(habitat)); }