@Override protected final void init() { super.init(); mixin = new MixInImpl(this); }
@Override protected final void init() { super.init(); mixin = new MixInImpl(this); }
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); init(); final Thread t = Thread.currentThread(); String n = t.getName();
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); init(); final Thread t = Thread.currentThread(); String n = t.getName();
/** * {@inheritDoc} */ @Override protected final void init() { super.init(); if (orphanedItemStrategy == null) { orphanedItemStrategy = new DefaultOrphanedItemStrategy(true, "", ""); } if (triggers == null) { triggers = new DescribableList<Trigger<?>,TriggerDescriptor>(this); } else { triggers.setOwner(this); } for (Trigger t : triggers) { t.start(this, Items.currentlyUpdatingByXml()); } synchronized (this) { computation = createComputation(null); } currentObservationsLock = new ReentrantLock(); currentObservationsChanged = currentObservationsLock.newCondition(); currentObservations = new HashSet<>(); }
/** * {@inheritDoc} */ @Override protected void init() { super.init(); if (orphanedItemStrategy == null) { orphanedItemStrategy = new DefaultOrphanedItemStrategy(true, "", ""); } if (triggers == null) { triggers = new DescribableList<Trigger<?>,TriggerDescriptor>(this); } else { triggers.setOwner(this); } for (Trigger t : triggers) { t.start(this, Items.currentlyUpdatingByXml()); } synchronized (this) { computation = createComputation(null); } currentObservationsLock = new ReentrantLock(); currentObservationsChanged = currentObservationsLock.newCondition(); currentObservations = new HashSet<>(); }