Examples of ObjectSpecification


Examples of org.apache.isis.core.metamodel.spec.ObjectSpecification

    /**
     * API: Return specification.
     */
    @Override
    public ObjectSpecification loadSpecification(final Class<?> type) {
        final ObjectSpecification spec = internalLoadSpecification(type);
        if(spec == null) {
            return null;
        }
        if(getCache().isInitialized()) {
            // umm.  It turns out that anonymous inner classes (eg org.estatio.dom.WithTitleGetter$ToString$1)
            // don't have an ObjectSpecId; hence the guard.
            if(spec.containsDoOpFacet(ObjectSpecIdFacet.class)) {
                ObjectSpecId specId = spec.getSpecId();
                if (getCache().getByObjectType(specId) == null) {
                    getCache().recache(spec);
                }
            }
        }
View Full Code Here

Examples of org.apache.isis.object.ObjectSpecification

public class ScheduleBlockSpecification extends AbstractCompositeViewSpecification{
  private static final Logger LOG = LoggerFactory.getLogger(ScheduleBlockView.class);

  public View createView(Content content, ViewAxis axis) {
      ObjectSpecification nc = ((ObjectContent) content).getObject().getSpecification();
      ObjectField[] flds = nc.getFields();
      ObjectField timePeriodField = null;
      ObjectField colorField = null;
      for (int i = 0; i < flds.length; i++) {
      ObjectField field = flds[i];
      if(field.getType().isOfType(Isis.getSpecificationLoader().loadSpecification(TimePeriod.class))) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.