|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.metro.runtime.CompositionController
public class CompositionController
The composition controller is the controller used to establish remotely accessible component controls.
Field Summary | |
---|---|
static URI |
CONTROLLER_URI
Static URI of this controller. |
Fields inherited from interface net.dpml.component.Controller |
---|
STANDARD |
Constructor Summary | |
---|---|
CompositionController(ControllerContext context)
Creation of a new controller. |
Method Summary | |
---|---|
Part |
build(Logger logger,
Info info,
Classpath classpath,
Element strategy,
Resolver resolver)
Construct the deployment information from a part definition. |
Component |
createComponent(Model model)
Create and return a remote reference to a component handler. |
Component |
createComponent(URI uri)
Create and return a remote reference to a component handler. |
Model |
createModel(Composition composition)
Create and return a new management context using the supplied directive uri. |
Model |
createModel(URI uri)
Create and return a new management context using the supplied directive uri. |
protected void |
finalize()
Controller finalization. |
ClassLoader |
getClassLoader(String name,
ClassLoader anchor,
Classpath classpath)
Build a classloader stack. |
ControllerContext |
getControllerContext()
Return the controllers runtime context. |
URI |
getURI()
Returns the uri of this controller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final URI CONTROLLER_URI
Constructor Detail |
---|
public CompositionController(ControllerContext context) throws ControlException
context
- the control context
ControlException
- if an error occurs during controller creationMethod Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
- if a finalization error occurspublic Part build(Logger logger, Info info, Classpath classpath, Element strategy, Resolver resolver) throws IOException
build
in interface Builder
logger
- the logging channelinfo
- the part info definitionclasspath
- the part classpath definitionstrategy
- the DOM element definining the deplyment streategyresolver
- build-time uri resolver
IOException
- if an I/O error occurspublic ClassLoader getClassLoader(String name, ClassLoader anchor, Classpath classpath) throws IOException
name
- the name to assign to the classloaderanchor
- the anchor classloader to server as the classloader chain rootclasspath
- the part classpath definition
IOException
- if an IO error occurs during classpath evaluationpublic URI getURI()
getURI
in interface Controller
public Model createModel(URI uri) throws ControlException, IOException
createModel
in interface Controller
uri
- a uri identifying a deployment directive
ControlException
- if an error occurs
IOException
- if an error occurs reading the identified resourcepublic Model createModel(Composition composition) throws ControlException, IOException
createModel
in interface Controller
composition
- a composition directive
ControlException
- if an error occurs
IOException
- if an I/O error occurspublic Component createComponent(URI uri) throws Exception
createComponent
in interface Controller
uri
- a uri identifying a deployment directive
Exception
- if an error occurspublic Component createComponent(Model model) throws Exception
createComponent
in interface Controller
model
- the component model
Exception
- if an error occurs during component creationpublic ControllerContext getControllerContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |