Klasse OutletTypes
java.lang.Object
org.apache.torque.generator.configuration.OutletTypes
Manages the types of known Outlets. This include information
about how to read the configuration of each outlet type.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns an unmodifiable map containing all typed outlet handler factories, keyed by their type.Returns an unmodifiable list containing all untyped outlet handler factories.void
Registers a handler for a new type of outlets.void
Registers a untyped handler.
-
Konstruktordetails
-
OutletTypes
public OutletTypes()Constructor. Creates a new instance containing the mappings to the default outlet types.
-
-
Methodendetails
-
registerTypedOutletHandlerFactory
public void registerTypedOutletHandlerFactory(TypedOutletSaxHandlerFactory factory) throws ConfigurationException Registers a handler for a new type of outlets.- Parameter:
factory
- the factory which handles the outlets of the given type.- Löst aus:
NullPointerException
- if factory is null.ConfigurationException
- if a factory already exists for the type of the outlet.
-
registerUntypedOutletHandlerFactory
public void registerUntypedOutletHandlerFactory(UntypedOutletSaxHandlerFactory factory) throws ConfigurationException Registers a untyped handler.- Parameter:
factory
- the factory which can handle outlets of different types- Löst aus:
NullPointerException
- if factory is null.ConfigurationException
- if a factory already exists for the type of the outlet.
-
getTypedOutletHandlerFactories
Returns an unmodifiable map containing all typed outlet handler factories, keyed by their type.- Gibt zurück:
- all typed outlet handler factories, not null.
-
getUntypedOutletHandlerFactories
Returns an unmodifiable list containing all untyped outlet handler factories.- Gibt zurück:
- all untyped outlet handler factories, not null.
-