Class ComponentDescriptor

java.lang.Object
org.fenixedu.cms.domain.component.ComponentDescriptor

public class ComponentDescriptor extends Object
Describes a Component, containing all the necessary information to dynamically instantiate them.
Author:
João Carvalho (joao.pedro.carvalho@tecnico.ulisboa.pt)
  • Method Details

    • notNull

      public static void notNull(Object object, String message)
      Copied from Spring ClassUtils
    • getMethodIfAvailable

      public static Method getMethodIfAvailable(Class<?> clazz, String methodName, Class<?>... paramTypes)
    • getConstructorIfAvailable

      public static <T> Constructor<T> getConstructorIfAvailable(Class<T> clazz, Class<?>... paramTypes)
    • getType

      public Class<?> getType()
    • getName

      public String getName()
    • isStateless

      public boolean isStateless()
    • isForSite

      public boolean isForSite(Site site)
    • toJson

      public com.google.gson.JsonObject toJson()
    • getParameterDescription

      public com.google.gson.JsonArray getParameterDescription(Page page)
    • instantiate

      public Component instantiate(com.google.gson.JsonObject params) throws Exception
      Throws:
      Exception
    • fromJson

      public Component fromJson(com.google.gson.JsonObject jsonObject) throws Exception
      Throws:
      Exception