net.dpml.component
Interface Controller

All Known Implementing Classes:
CompositionController

public interface Controller

The Controller interface defines the a contract for an object that provides generalized part loading.

Version:
1.2.0
Author:
Digital Product Meta Library

Field Summary
static Controller STANDARD
          Static default controller.
 
Method Summary
 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.
 URI getURI()
          Returns the identity of the object implementing this interface.
 

Field Detail

STANDARD

static final Controller STANDARD
Static default controller.

Method Detail

getURI

URI getURI()
Returns the identity of the object implementing this interface.

Returns:
a uri identifying the object

createModel

Model createModel(URI uri)
                  throws ControlException,
                         IOException
Create and return a new management context using the supplied directive uri.

Parameters:
uri - a uri identifying a deployment directive
Returns:
the management context model
Throws:
ControlException - if an error occurs
IOException - if an I/O error occurs

createModel

Model createModel(Composition composition)
                  throws ControlException,
                         IOException
Create and return a new management context using the supplied directive uri.

Parameters:
composition - a composition directive
Returns:
the management model
Throws:
ControlException - if an error occurs
IOException - if an I/O error occurs

createComponent

Component createComponent(URI uri)
                          throws Exception
Create and return a remote reference to a component handler.

Parameters:
uri - a uri identifying a deployment directive
Returns:
the component handler
Throws:
Exception - if an error occurs

createComponent

Component createComponent(Model model)
                          throws Exception
Create and return a remote reference to a component handler.

Parameters:
model - the management context
Returns:
the component handler
Throws:
Exception - if a component construction error occurs