|
eXo Kernel :: Container 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.util.ContainerUtil
public class ContainerUtil
| Constructor Summary | |
|---|---|
ContainerUtil()
|
|
| Method Summary | |
|---|---|
static void |
addComponentLifecyclePlugin(ExoContainer container,
ConfigurationManager conf)
|
static void |
addComponents(ExoContainer container,
ConfigurationManager conf)
|
static void |
addContainerLifecyclePlugin(ExoContainer container,
ConfigurationManager conf)
|
static Collection<URL> |
getConfigurationURL(String configuration)
|
static Constructor<?>[] |
getSortedConstructors(Class<?> clazz)
|
static boolean |
hasFieldOrMethodWithInject(Class<?> clazz)
Indicates whether or not this class or one of its super class has at least one Inject annotation on a field or a method |
static boolean |
hasInjectableConstructor(Class<?> clazz)
Indicates whether or not the given Class has a constructor annotated with Inject |
static boolean |
hasOnlyEmptyPublicConstructor(Class<?> clazz)
Indicates whether or not the given Class has only a public non argument constructor |
static boolean |
isSingleton(Class<?> clazz)
Indicates whether or not the given Class is a singleton |
static Map<String,String> |
loadProperties(URL url)
Loads the properties file corresponding to the given url |
static Map<String,String> |
loadProperties(URL url,
boolean resolveVariables)
Loads the properties file corresponding to the given url |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerUtil()
| Method Detail |
|---|
public static Constructor<?>[] getSortedConstructors(Class<?> clazz)
throws NoClassDefFoundError
NoClassDefFoundErrorpublic static boolean hasInjectableConstructor(Class<?> clazz)
public static boolean hasOnlyEmptyPublicConstructor(Class<?> clazz)
public static boolean hasFieldOrMethodWithInject(Class<?> clazz)
public static boolean isSingleton(Class<?> clazz)
public static Collection<URL> getConfigurationURL(String configuration)
throws Exception
Exception
public static void addContainerLifecyclePlugin(ExoContainer container,
ConfigurationManager conf)
public static void addComponentLifecyclePlugin(ExoContainer container,
ConfigurationManager conf)
public static void addComponents(ExoContainer container,
ConfigurationManager conf)
public static Map<String,String> loadProperties(URL url)
url - the url of the properties file
Map of properties
public static Map<String,String> loadProperties(URL url,
boolean resolveVariables)
url - the url of the properties fileresolveVariables - indicates if the variables must be resolved
Map of properties
|
eXo Kernel :: Container 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||