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 1773378 2016-12-09 13:19:59Z 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
      Type Parameters:
        `T` - the type of the assembler
      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
      Type Parameters:
        `T` - the type of the assembler
      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
      Type Parameters:
        `T` - the type of the assembler
      Parameters:
        `type` - The Type of the Assembler
      Returns:
        A Loader instance for the requested type

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.