net.xoetrope.registry
Class ComponentCustomizer

java.lang.Object
  extended by net.xoetrope.registry.ComponentCustomizer

public class ComponentCustomizer
extends java.lang.Object

A utility for applying customizations to components.

Copyright (c) Xoetrope Ltd., 2002-2006

License: see License.txt


Field Summary
static int POST_CREATE_TIME
           
static int PRE_ACTIVATE_TIME
           
 
Constructor Summary
ComponentCustomizer(XProject project)
          Creates a new instance of ComponentCustomizer
 
Method Summary
 void activateCustomize()
          Apply a named set of customizations to a component
 int applyCustomizations(java.lang.Object comp, XmlElement propertySet, int applyTime)
          Apply a named set of customizations to a component
 int customize(java.lang.Object comp, java.lang.String propertySetName, int applyTime)
          Apply a named set of customizations to a component
 void read(java.io.Reader reader)
          Read the customizations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POST_CREATE_TIME

public static final int POST_CREATE_TIME
See Also:
Constant Field Values

PRE_ACTIVATE_TIME

public static final int PRE_ACTIVATE_TIME
See Also:
Constant Field Values
Constructor Detail

ComponentCustomizer

public ComponentCustomizer(XProject project)
Creates a new instance of ComponentCustomizer

Parameters:
project - the current project
Method Detail

activateCustomize

public void activateCustomize()
Apply a named set of customizations to a component


customize

public int customize(java.lang.Object comp,
                     java.lang.String propertySetName,
                     int applyTime)
Apply a named set of customizations to a component

Parameters:
comp - the new component to customize
propertySetName - the reference name for the customizations
applyTime - the time to apply the customization

applyCustomizations

public int applyCustomizations(java.lang.Object comp,
                               XmlElement propertySet,
                               int applyTime)
Apply a named set of customizations to a component

Parameters:
comp - the new component to customize
propertySetName - the reference name for the customizations
applyTime - the time to apply the customization

read

public void read(java.io.Reader reader)
Read the customizations

Parameters:
reader - the stream to read