org.apache.turbine.services.assemblerbroker

## Interface AssemblerBrokerService

- All Superinterfaces:
    Initable, Service
  All Known Implementing Classes:
    TurbineAssemblerBrokerService

      public interface AssemblerBrokerService
      extends Service

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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `SERVICE_NAME` Name of the Service

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T extends Assembler> T` | `getAssembler(Class<T> type, String name)` Attempts to load an Assembler of a type with a given name
    `<T extends Assembler> Loader<T>` | `getLoader(Class<T> type)` Get a Loader for the given assembler type
    `<T extends Assembler> void` | `registerFactory(AssemblerFactory<T> factory)` Register an AssemblerFactory class

    - ### Methods inherited from interface org.apache.turbine.services.Service

      `getConfiguration, getName, getProperties, setName, setServiceBroker`

    - ### Methods inherited from interface org.apache.turbine.services.Initable

      `getInit, init, init, setInitableBroker, shutdown`

- - ### Field Detail

    - #### SERVICE_NAME

          static final String SERVICE_NAME

      Name of the Service
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### registerFactory

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

      Register an AssemblerFactory class
      Parameters:
        `factory` - The factory object

    - #### getAssembler

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

      Attempts to load an Assembler of a type with a given name
      Parameters:
        `type` - The Type of the Assembler
        `name` - The Name of the Assembler
      Returns:
        An Assembler object for the requested name and type
      Throws:
        `TurbineException` - Something went wrong while looking for the Assembler

    - #### getLoader

          <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.