Search in sources :

Example 1 with RWStatesOperations

use of jbaciEnumPropTest.RWStatesOperations 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);
    }
}
Also used : States(jbaciEnumPropTest.States) RWStates(jbaciEnumPropTest.RWStates) ROStates(jbaciEnumPropTest.ROStates) ROStatesOperations(jbaciEnumPropTest.ROStatesOperations) ROStatesPOATie(jbaciEnumPropTest.ROStatesPOATie) RWStatesPOATie(jbaciEnumPropTest.RWStatesPOATie) ComponentLifecycleException(alma.acs.component.ComponentLifecycleException) MemoryDataAccess(alma.ACS.jbaci.MemoryDataAccess) RWStatesOperations(jbaciEnumPropTest.RWStatesOperations)

Aggregations

MemoryDataAccess (alma.ACS.jbaci.MemoryDataAccess)1 ComponentLifecycleException (alma.acs.component.ComponentLifecycleException)1 ROStates (jbaciEnumPropTest.ROStates)1 ROStatesOperations (jbaciEnumPropTest.ROStatesOperations)1 ROStatesPOATie (jbaciEnumPropTest.ROStatesPOATie)1 RWStates (jbaciEnumPropTest.RWStates)1 RWStatesOperations (jbaciEnumPropTest.RWStatesOperations)1 RWStatesPOATie (jbaciEnumPropTest.RWStatesPOATie)1 States (jbaciEnumPropTest.States)1