Class FrameworkUtil

java.lang.Object
net.ideahut.springboot.util.FrameworkUtil

public final class FrameworkUtil extends Object
  • Field Details

  • Method Details

    • getHibernateSettings

      public static Map<String,Object> getHibernateSettings(org.springframework.core.env.Environment environment, String prefix)
    • getHibernateSettings

      public static Map<String,Object> getHibernateSettings(Map<String,?> map)
    • getHibernateProperties

      public static Properties getHibernateProperties(org.springframework.core.env.Environment environment, String prefix)
    • getHibernateProperties

      public static Properties getHibernateProperties(Map<String,?> map)
    • createFilterBean

      public static <T extends org.springframework.web.filter.GenericFilterBean> org.springframework.boot.web.servlet.FilterRegistrationBean<T> createFilterBean(org.springframework.core.env.Environment environment, T filter, int order, String... urlPatterns)
    • classOf

      public static <T> Class<T> classOf(String name, boolean initialize, ClassLoader loader)
    • classOf

      public static <T> Class<T> classOf(String name)
    • exception

      public static RuntimeException exception(Throwable e)
    • exception

      public static RuntimeException exception(String text)
    • instanceOf

      public static <T> T instanceOf(Class<?> type, Class<?>... constructorTypes) throws Exception
      Throws:
      Exception
    • instanceOf

      public static <T> T instanceOf(String classname, Class<?>... constructorTypes) throws Exception
      Throws:
      Exception
    • resourceBytes

      public static byte[] resourceBytes(String target) throws Exception
      Throws:
      Exception
    • isDeleted

      public static boolean isDeleted(Object entity)
    • isTrue

      public static boolean isTrue(Character character)
    • isPublic

      public static boolean isPublic(Method method)
    • isLogin

      public static boolean isLogin(Method method)
    • replacePath

      public static String replacePath(String text)
    • replacePath

      public static String replacePath(String text, boolean normalized)
    • digest

      public static String digest(String algorithm, String text)