com.advancedpwr.record
Class ArrayClassDescriptor

java.lang.Object
  extended by com.advancedpwr.record.DefaultClassDescriptor
      extended by com.advancedpwr.record.ArrayClassDescriptor
All Implemented Interfaces:
ClassDescriptor

public class ArrayClassDescriptor
extends DefaultClassDescriptor

A ClassDescriptor for array factories. If the object to be recorded is a Java array, this class descriptor will create an appropriately named class. For example, if the target object to be recorded is an array of com.example.Person objects, this ClassDescriptor will generate a class name of "PersonArrayFactory" in the package "com.example.generated".

Author:
Matthew Avery, mavery@advancedpwr.com on Sep 30, 2010

Field Summary
static String ARRAY
           
 
Fields inherited from class com.advancedpwr.record.DefaultClassDescriptor
FACTORY, fieldClass, GENERATED
 
Constructor Summary
ArrayClassDescriptor(Class inClass)
           
 
Method Summary
 String getClassName()
           
 Class subject()
           
 
Methods inherited from class com.advancedpwr.record.DefaultClassDescriptor
getPackageName, setClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ARRAY

public static final String ARRAY
See Also:
Constant Field Values
Constructor Detail

ArrayClassDescriptor

public ArrayClassDescriptor(Class inClass)
Method Detail

getClassName

public String getClassName()
Specified by:
getClassName in interface ClassDescriptor
Overrides:
getClassName in class DefaultClassDescriptor

subject

public Class subject()
Overrides:
subject in class DefaultClassDescriptor


Copyright © 2011 Advanced Power Co. All Rights Reserved.