Class JClassPrinterFactoryRegistry
- java.lang.Object
-
- org.exolab.castor.builder.printing.JClassPrinterFactoryRegistry
-
public class JClassPrinterFactoryRegistry extends java.lang.Object
Registry forJClassPrinterFactory
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
Constructors Constructor Description JClassPrinterFactoryRegistry(BuilderConfiguration config)
Construct an instance of JClassPrinterFactoryRegistry that loads theJClassPrinterFactory
implementations specified in the given Configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JClassPrinterFactory
getJClassPrinterFactory(java.lang.String name)
Returns aJClassPrinterFactory
with the specified name.java.lang.String[]
getJClassPrinterFactoryNames()
Returns the names of all the configuredJClassPrinterFactory
implementations.
-
-
-
Constructor Detail
-
JClassPrinterFactoryRegistry
public JClassPrinterFactoryRegistry(BuilderConfiguration config)
Construct an instance of JClassPrinterFactoryRegistry that loads theJClassPrinterFactory
implementations specified in the given Configuration.- Parameters:
config
- The LocalConfiguration.
-
-
Method Detail
-
getJClassPrinterFactoryNames
public java.lang.String[] getJClassPrinterFactoryNames()
Returns the names of all the configuredJClassPrinterFactory
implementations. AJClassPrinterFactory
instance can be obtained by thegetJClassPrinterFactory(java.lang.String)
method.- Returns:
- Names of
JClassPrinterFactory
implementations
-
getJClassPrinterFactory
public JClassPrinterFactory getJClassPrinterFactory(java.lang.String name)
Returns aJClassPrinterFactory
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.
-
-