org.exolab.castor.builder.printing
Class JClassPrinterFactoryRegistry

java.lang.Object
  extended by org.exolab.castor.builder.printing.JClassPrinterFactoryRegistry

public class JClassPrinterFactoryRegistry
extends java.lang.Object

Registry for JClassPrinterFactory implementations obtained from the Castor XML code generator property file and used by the XML code generator during its operation.

Since:
1.2.1
Version:
$Revision: 7134 $ $Date: 2006-04-08 08:58:10 -0600 (Sat, 08 Apr 2006) $
Author:
Werner Guttmann

Constructor Summary
JClassPrinterFactoryRegistry(BuilderConfiguration config)
          Construct an instance of JClassPrinterFactoryRegistry that loads the JClassPrinterFactory implementations specified in the given Configuration.
 
Method Summary
 JClassPrinterFactory getJClassPrinterFactory(java.lang.String name)
          Returns a JClassPrinterFactory with the specified name.
 java.lang.String[] getJClassPrinterFactoryNames()
          Returns the names of all the configured JClassPrinterFactory implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JClassPrinterFactoryRegistry

public JClassPrinterFactoryRegistry(BuilderConfiguration config)
Construct an instance of JClassPrinterFactoryRegistry that loads the JClassPrinterFactory implementations specified in the given Configuration.

Parameters:
config - The LocalConfiguration.
Method Detail

getJClassPrinterFactoryNames

public java.lang.String[] getJClassPrinterFactoryNames()
Returns the names of all the configured JClassPrinterFactory implementations. A JClassPrinterFactory instance can be obtained by the getJClassPrinterFactory(java.lang.String) method.

Returns:
Names of JClassPrinterFactory implementations

getJClassPrinterFactory

public JClassPrinterFactory getJClassPrinterFactory(java.lang.String name)
Returns a JClassPrinterFactory with the specified name. Returns null if the named factory is not supported.

Parameters:
name - The name of the JClassPrinterFactory.
Returns:
The JClassPrinterFactory or null if none exists.


Copyright © 2011. All Rights Reserved.