org.locomotive.directory.loco
Class BeanDirectory
java.lang.Object
|
+--org.locomotive.directory.loco.BeanDirectory
- public class BeanDirectory
- extends java.lang.Object
- implements ScopeLookup, DirectoryEventListener
This is an example application showing how you can use Bean Directory
to start up an entire application as defined by a set of configuration
files.
The class bootstrap the NameService and starts up the ServiceList,
which in turn will startup all the services in the sequence defined by
"/ServiceList.cfg".
- Version:
- $Id: BeanDirectory.java,v 1.2 1999/05/05 10:19:32 gunnar Exp $
- Author:
- Gunnar Rønning (gunnar@candleweb.no).
Method Summary |
void |
directoryEvent(DirectoryEvent e)
Called when an event occurs in the bean directory. |
static BeanDirectory |
getInstance()
|
java.lang.Object |
getScope(java.lang.String scopeType)
Return the appropriate object for the requested scope. |
static boolean |
isRunning()
|
void |
log(int level,
java.lang.String message)
|
static void |
main(java.lang.String[] args)
|
static java.lang.Object |
resolve(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
|
static java.lang.Object |
resolve(java.lang.String name)
|
void |
startup(java.lang.String[] configPath)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getInstance
public static BeanDirectory getInstance()
resolve
public static java.lang.Object resolve(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
resolve
public static java.lang.Object resolve(java.lang.String name)
log
public void log(int level,
java.lang.String message)
directoryEvent
public void directoryEvent(DirectoryEvent e)
- Description copied from interface: DirectoryEventListener
- Called when an event occurs in the bean directory.
- Specified by:
- directoryEvent in interface DirectoryEventListener
- Tags copied from interface: DirectoryEventListener
- Parameters:
event
- DirectoryEvent containing details
about the event.
getScope
public java.lang.Object getScope(java.lang.String scopeType)
- Description copied from interface: ScopeLookup
- Return the appropriate object for the requested scope.
- Specified by:
- getScope in interface ScopeLookup
- Tags copied from interface: ScopeLookup
- Parameters:
scopeType
- The scope type to lookup.- Returns:
- Returns the object defining the scope of the scope type.
startup
public void startup(java.lang.String[] configPath)
isRunning
public static final boolean isRunning()
main
public static void main(java.lang.String[] args)