|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.component.LocalEventProducer net.dpml.component.InitialContext
The CompositionControllerContext class wraps a ContentModel and supplies convinience operations that translate ContentModel properties and events to type-safe values used in the conposition controller.
Constructor Summary | |
InitialContext()
Creation of a new InitialContext. |
|
InitialContext(String partition)
Creation of a new InitialContext. |
|
InitialContext(String partition,
File work,
File temp)
Creation of a new InitialContext. |
Method Summary | |
void |
addControllerContextListener(ControllerContextListener listener)
Add the supplied controller context listener to the controller context. |
protected void |
addListener(EventListener listener)
Add a listener to the set of listeners handled by this producer. |
static Controller |
createController()
Create the default controller using the default initial context. |
static Controller |
createController(InitialContext context)
Create the default controller. |
void |
dispose()
Initiate disposal. |
protected void |
enqueueEvent(EventObject event)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
protected void |
enqueueEvent(EventObject event,
boolean asynchronouse)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
protected Logger |
getInternalLogger()
Return the internal context logging channel. |
protected Object |
getLock()
Return the synchronization lock. |
String |
getPartition()
Return the partition name |
File |
getTempDirectory()
Return the root temporary directory. |
File |
getWorkingDirectory()
Return the root working directory. |
protected EventListener[] |
listeners()
Return this node's preference/node change listeners. |
protected void |
processEvent(EventObject event)
Process a context related event. |
void |
removeControllerContextListener(ControllerContextListener listener)
Remove the supplied controller context listener from the controller context. |
protected void |
removeListener(EventListener listener)
Remove a listener to the set of listeners handled by this producer. |
void |
setWorkingDirectory(File dir)
Set the root working directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InitialContext()
public InitialContext(String partition)
partition
- the assigned partition namepublic InitialContext(String partition, File work, File temp)
partition
- the partition namework
- the working directorytemp
- the temporary directoryMethod Detail |
public static Controller createController()
public static Controller createController(InitialContext context)
context
- the controller context
public void dispose()
dispose
in interface Disposable
public String getPartition()
getPartition
in interface ControllerContext
public File getWorkingDirectory()
getWorkingDirectory
in interface ControllerContext
public void setWorkingDirectory(File dir)
dir
- the root of the working directory hierachypublic File getTempDirectory()
getTempDirectory
in interface ControllerContext
public void addControllerContextListener(ControllerContextListener listener)
addControllerContextListener
in interface ControllerContext
listener
- the controller context listener to addpublic void removeControllerContextListener(ControllerContextListener listener)
removeControllerContextListener
in interface ControllerContext
listener
- the controller context listener to removeprotected void processEvent(EventObject event)
event
- the event to processprotected Logger getInternalLogger()
protected Object getLock()
protected void addListener(EventListener listener)
listener
- the event listenerprotected void removeListener(EventListener listener)
listener
- the event listenerprotected EventListener[] listeners()
protected void enqueueEvent(EventObject event)
protected void enqueueEvent(EventObject event, boolean asynchronouse)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |