use of jbaciEnumPropTest.ROStatesOperations in project ACS by ACS-Community.
the class EnumTestComponentImpl method initialize.
/**
* @see alma.acs.component.ComponentLifecycle#initialize(alma.acs.container.ContainerServices)
*/
public void initialize(ContainerServices containerServices) throws ComponentLifecycleException {
super.initialize(containerServices);
try {
dataAccess = new MemoryDataAccess();
// currentState
ROStatesOperations currentStateImpl = (ROStatesOperations) CommonROEnumPropertyImpl.createEnumProperty(ROStatesOperations.class, States.class, "currentState", this, dataAccess);
ROStatesPOATie currentStatesTie = new ROStatesPOATie(currentStateImpl);
currentState = ROStatesHelper.narrow(this.registerProperty(currentStateImpl, currentStatesTie));
// currentStateRW
RWStatesOperations currentStateRWImpl = (RWStatesOperations) CommonRWEnumPropertyImpl.createEnumProperty(RWStatesOperations.class, States.class, "currentStateRW", this, dataAccess);
RWStatesPOATie currentStatesRWTie = new RWStatesPOATie(currentStateRWImpl);
currentStateRW = RWStatesHelper.narrow(this.registerProperty(currentStateRWImpl, currentStatesRWTie));
} catch (Throwable th) {
throw new ComponentLifecycleException("Failed to create properties.", th);
}
}
Aggregations