|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.spring.SpringBeans
public class SpringBeans
Beans within Spring may be accessed from other Oddjob components using the notation ${id-of-this/name-of-bean}.
Oddjob beans are made available via a parent BeanFactory so can be accessed by reference.
Oddjobs beans and there properties can also be accessed using the ${id.property} notation within Spring configuration files.
examples/config directory. To run
the examples copy the examples/classes directory to it's parent
directory so that Oddjob recognises them as part of the Oddball.
| Constructor Summary | |
|---|---|
SpringBeans()
|
|
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
|
String[] |
getFiles()
Getter. |
String |
getName()
|
String[] |
getResources()
Getter. |
BeanDirectory |
provideBeanDirectory()
Get the BeanDirectory. |
void |
run()
|
void |
setArooaSession(ArooaSession session)
|
void |
setClassLoader(ClassLoader classLoader)
Set the class loader to load resource with. |
void |
setFiles(String[] files)
Setter |
void |
setName(String name)
|
void |
setResources(String[] resources)
Setter. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpringBeans()
| Method Detail |
|---|
public String getName()
public void setName(String name)
public String[] getFiles()
public void setFiles(String[] files)
files - public String[] getResources()
public void setResources(String[] resources)
resources - public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader - public void setArooaSession(ArooaSession session)
setArooaSession in interface ArooaSessionAwarepublic void run()
run in interface Runnablepublic BeanDirectory provideBeanDirectory()
BeanDirectoryOwnerBeanDirectory. This method may return null if
the BeanDirectory isn't available.
provideBeanDirectory in interface BeanDirectoryOwnerBeanDirectoryOwner
BeanDirectory or null.public String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||