|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.util.BeanContainer
public class BeanContainer
This class made up of static methods which redirect to the BeanPot or other bean container. If you decide to use, for example Spring, instead of BeanPot, you will only have to change the references in this class.
Constructor Summary | |
---|---|
BeanContainer()
|
Method Summary | |
---|---|
static void |
cleanup()
|
static void |
configure()
|
static java.lang.Object |
getBean(java.lang.String key)
|
static java.util.Set<java.lang.String> |
getBeanKeys()
TEST |
static java.lang.String |
getIdentifier()
|
static void |
imposeBean(java.lang.String key,
java.lang.Object bean)
|
static void |
runBeans()
TEST |
static java.lang.Object |
setBeanProperty(java.lang.String beanProperty,
java.lang.Object value)
|
static void |
setClassLoader(java.lang.ClassLoader classLoader)
|
static void |
setConfiguration(java.lang.Class<? extends java.lang.Object> clazz,
java.lang.String filename)
Invoke BeanPot#setConfiguration(Class, String, boolean) with the
two parameters given. |
static void |
setConfiguration(java.lang.String configurationFile)
Invoke BeanPot.setConfiguration(String) with the one parameter
given. |
static void |
setDebug(boolean debug)
|
static void |
setValidate()
|
static void |
setValidate(boolean validate,
java.net.URL dtd)
|
static void |
showBeans()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanContainer()
Method Detail |
---|
public static void cleanup()
public static void configure() throws com.rubecula.beanpot.BeanPotException
com.rubecula.beanpot.BeanPotException
public static java.lang.Object getBean(java.lang.String key)
key
-
key
.public static java.util.Set<java.lang.String> getBeanKeys()
public static java.lang.String getIdentifier()
public static void imposeBean(java.lang.String key, java.lang.Object bean) throws com.rubecula.beanpot.BeanPotException
key
- bean
-
com.rubecula.beanpot.BeanPotException
public static void runBeans()
public static java.lang.Object setBeanProperty(java.lang.String beanProperty, java.lang.Object value) throws com.rubecula.beanpot.BeanPotException
beanProperty
- value
-
com.rubecula.beanpot.BeanPotException
public static void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- public static void setConfiguration(java.lang.Class<? extends java.lang.Object> clazz, java.lang.String filename) throws com.rubecula.beanpot.BeanPotException
BeanPot#setConfiguration(Class, String, boolean)
with the
two parameters given.
clazz
- XXXfilename
- XXX
com.rubecula.beanpot.BeanPotException
public static void setConfiguration(java.lang.String configurationFile) throws com.rubecula.beanpot.BeanPotException
BeanPot.setConfiguration(String)
with the one parameter
given.
configurationFile
-
com.rubecula.beanpot.BeanPotException
public static void setDebug(boolean debug)
debug
- XXXpublic static void setValidate()
public static void setValidate(boolean validate, java.net.URL dtd)
validate
- true if we want to force DTD validationdtd
- the URL of the DTD (if null then we use the current value).public static void showBeans()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |