net.dpml.transit
Interface LayoutRegistry


public interface LayoutRegistry

A interface supporting access to pluggable content handlers.

Version:
1.0.1
Author:
Digital Product Meta Library

Field Summary
static String LAYOUT_HANDLER_PLUGIN_KEY
          Constrant layout plugin key.
 
Method Summary
 Layout getLayout(String id)
          Return a location resolver capable for supporting the supplied id.
 

Field Detail

LAYOUT_HANDLER_PLUGIN_KEY

public static final String LAYOUT_HANDLER_PLUGIN_KEY
Constrant layout plugin key.

See Also:
Constant Field Values
Method Detail

getLayout

public Layout getLayout(String id)
                 throws UnknownKeyException,
                        IOException
Return a location resolver capable for supporting the supplied id. If a handler is available the handler is returned otherwise the returned value is null.

Parameters:
id - the layout identifier
Returns:
the location resolver or null if not available
Throws:
UnknownKeyException - if the key is not recognized
IOException - if an IO error occurs