Package org.apache.isis.core.metamodel.facets.param.defaults

Examples of org.apache.isis.core.metamodel.facets.param.defaults.ActionParameterDefaultsFacet


        if (parentAction.isContributed() && adapter != null) {
            if (adapter.getSpecification().isOfType(getSpecification())) {
                return adapter;
            }
        }
        final ActionParameterDefaultsFacet defaultsFacet = getFacet(ActionParameterDefaultsFacet.class);
        if (defaultsFacet != null) {
            final Object dflt = defaultsFacet.getDefault(parentAction.realTarget(adapter));
            if (dflt == null) {
                // it's possible that even though there is a default facet, when invoked it
                // is unable to return a default.
                return null;
            }
View Full Code Here


        } else {
            // use the new defaultNXxx approach for each param in turn
            // (the reflector will have made sure both aren't installed).
            parameterDefaultPojos = new Object[parameterCount];
            for (int i = 0; i < parameterCount; i++) {
                final ActionParameterDefaultsFacet paramFacet =
                    parameters.get(i).getFacet(ActionParameterDefaultsFacet.class);
                if (paramFacet != null && !paramFacet.isNoop()) {
                    parameterDefaultPojos[i] = paramFacet.getDefault(realTarget);
                } else {
                    parameterDefaultPojos[i] = null;
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.param.defaults.ActionParameterDefaultsFacet

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.