org.apache.turbine.services.assemblerbroker

## Class TurbineAssemblerBroker

- java.lang.Object
- - org.apache.turbine.services.assemblerbroker.TurbineAssemblerBroker

-     public abstract class TurbineAssemblerBroker
      extends Object

  An interface the Turbine Assembler service. See TurbineAssemblerBrokerService for more info.
  Version:
    $Id: TurbineAssemblerBroker.java 1199089 2011-11-08 03:14:28Z tv $
  Author:
    Leon Messerschmidt, Henning P. Schmiedehausen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TurbineAssemblerBroker()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends Assembler> T` | `getAssembler(Class<T> type, String name)` Return an Assembler for a given type and object name.
    `static <T extends Assembler> Loader<T>` | `getLoader(Class<T> type)` Get a Loader for the given assembler type
    `static AssemblerBrokerService` | `getService()` Utility method for accessing the service implementation
    `static <T extends Assembler> void` | `registerFactory(AssemblerFactory<T> factory)` Register a new Assembler factory with this service.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TurbineAssemblerBroker

          public TurbineAssemblerBroker()

  - ### Method Detail

    - #### getService

          public static AssemblerBrokerService getService()

      Utility method for accessing the service implementation
      Returns:
        An AssemblerBroker implementation instance

    - #### registerFactory

          public static <T extends Assembler> void registerFactory(AssemblerFactory<T> factory)

      Register a new Assembler factory with this service.
      Parameters:
        `factory` - The actual Factory Object

    - #### getAssembler

          public static <T extends Assembler> T getAssembler(Class<T> type,
                                             String name)
                                                  throws TurbineException

      Return an Assembler for a given type and object name.
      Parameters:
        `type` - The Type of Assembler we want
        `name` - The name of the Assembler
      Returns:
        An Assembler Object.
      Throws:
        `TurbineException` - If a problem locating the Assembler occurred.

    - #### getLoader

          public static <T extends Assembler> Loader<T> getLoader(Class<T> type)

      Get a Loader for the given assembler type
      Parameters:
        `type` - The Type of the Assembler
      Returns:
        A Loader instance for the requested type

Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.