com.ibm.broker.config.appdev

Class PropertyCompiler

  • java.lang.Object
    • com.ibm.broker.config.appdev.PropertyCompiler


  • public class PropertyCompiler
    extends java.lang.Object
    This class compiles the source property value into its compiled value which is sent to the broker. You can implement your own property compilers by extending this class and implementing compileProperty.* Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ xxxxx.x 2010-06-23 dstorey v8.0.0.0 Release
    • Constructor Detail

      • PropertyCompiler

        public PropertyCompiler(Node node)
    • Method Detail

      • compileProperty

        public java.lang.Object[] compileProperty(java.lang.String propertyName)
                                           throws com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
        This is called to compile a given node propertyName. If no compiler is available then the messageflow propertyValue is returned with no changes
        Parameters:
        propertyName - the property to compile
        Returns:
        Object[String, boolean] Object[String; compiled Value, boolean; simple property if true, complex property if false] eg simpleProperty: (propertyName=pattern) pattern="this is a pattern" complexPropery: (propertyName=pattern) this is a pattern
        Throws:
        RuntimePropertyCompilerException; - you can use get Message() or getMessage(Locale) to retrieve the message detail
        com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
      • compileProperty

        public java.lang.Object[] compileProperty(NodeProperty nodeProperty)
                                           throws com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
        Throws:
        com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
      • isRequiredConfigurable

        public boolean isRequiredConfigurable(java.lang.String propertyName)
                                       throws com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
        Returns:
        true if this property should create configurable property entries.
        Throws:
        com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
      • compileDefaultProperty

        public java.lang.Object[] compileDefaultProperty(java.lang.String propertyName)
                                                  throws com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
        This is called to compile a given node's default property on a given propertyName. If no compiler is available then the message flow default propertyValue is returned with no changes
        Parameters:
        propertyName - the property to return the compiled default value for
        Returns:
        Object[String, boolean] Object[String; compiled Value, boolean; simple property if true, complex property if false] eg simpleProperty: (propertyName=pattern) pattern="this is a pattern" complexPropery: (propertyName=pattern) this is a pattern
        Throws:
        RuntimePropertyCompilerException; - you can use get Message() or getMessage(Locale) to retrieve the message detail
        com.ibm.etools.mft.ibmnodes.compilers.RuntimePropertyCompilerException
      • getNodePropertyCompilerClass

        public static PropertyCompiler getNodePropertyCompilerClass(Node node)
      • getIndividualPropertyCompilerClass

        public static com.ibm.etools.mft.api.IRuntimePropertyCompiler getIndividualPropertyCompilerClass(java.lang.String compilerClassName)