Package org.apache.isis.viewer.bdd.common.story.registries

Examples of org.apache.isis.viewer.bdd.common.story.registries.AliasRegistryDefault


    @Before
    public void setUp() throws Exception {
        mockAdapter1 = mockery.mock(ObjectAdapter.class, "adapter1");
        mockAdapter2 = mockery.mock(ObjectAdapter.class, "adapter2");
        mockAdapter3 = mockery.mock(ObjectAdapter.class, "adapter3");
        registry = new AliasRegistryDefault();
    }
View Full Code Here


    /**
     * Need to recreate aliases whenever logout/login.
     */
    private AliasRegistry reAdapt(final AliasRegistry aliasesRegistry) {
        final AliasRegistry newAliasesRegistry = new AliasRegistryDefault();

        // first pass: root adapters
        for (final Map.Entry<String, ObjectAdapter> aliasAdapter : aliasesRegistry) {
            final String alias = aliasAdapter.getKey();
            final ObjectAdapter oldAdapter = aliasAdapter.getValue();

            if (oldAdapter.getOid() instanceof AggregatedOid) {
                continue;
            }
            newAliasesRegistry.aliasAs(alias, getAdapterManager().adapterFor(oldAdapter.getObject()));
        }

        // for now, not supporting aggregated adapters (difficulty in looking up
        // the parent adapter because the Oid changes)

View Full Code Here

    /**
     * Need to recreate aliases whenever logout/login.
     */
    private AliasRegistry reAdapt(final AliasRegistry aliasesRegistry) {
        final AliasRegistry newAliasesRegistry = new AliasRegistryDefault();

        // first pass: root adapters
        for (final Map.Entry<String, ObjectAdapter> aliasAdapter : aliasesRegistry) {
            final String alias = aliasAdapter.getKey();
            final ObjectAdapter oldAdapter = aliasAdapter.getValue();

            if (oldAdapter.getOid() instanceof AggregatedOid) {
                continue;
            }
            newAliasesRegistry.aliasAs(alias, getAdapterManager().adapterFor(oldAdapter.getObject()));
        }

        // for now, not supporting aggregated adapters (difficulty in looking up
        // the parent adapter because the Oid changes)

View Full Code Here

    /**
     * Need to recreate aliases whenever logout/login.
     */
    private AliasRegistry reAdapt(final AliasRegistry aliasesRegistry) {
        final AliasRegistry newAliasesRegistry = new AliasRegistryDefault();

        // first pass: root adapters
        for (final Map.Entry<String, ObjectAdapter> aliasAdapter : aliasesRegistry) {
            final String alias = aliasAdapter.getKey();
            final ObjectAdapter oldAdapter = aliasAdapter.getValue();

            if (oldAdapter.getOid() instanceof AggregatedOid) {
                continue;
            }
            newAliasesRegistry.aliasAs(alias, getAdapterManager().adapterFor(oldAdapter.getObject()));
        }

        // for now, not supporting aggregated adapters (difficulty in looking up
        // the parent adapter because the Oid changes)

View Full Code Here

    @Before
    public void setUp() throws Exception {
        mockAdapter1 = mockery.mock(ObjectAdapter.class, "adapter1");
        mockAdapter2 = mockery.mock(ObjectAdapter.class, "adapter2");
        mockAdapter3 = mockery.mock(ObjectAdapter.class, "adapter3");
        registry = new AliasRegistryDefault();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.bdd.common.story.registries.AliasRegistryDefault

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.