org.objectweb.jac.core
Class JacPropLoader

java.lang.Object
  extended byorg.objectweb.jac.core.JacPropTools
      extended byorg.objectweb.jac.core.JacPropLoader

public abstract class JacPropLoader
extends JacPropTools

This class is used to load all the properties necessary to the execution of JAC. This class is called by the Jac, JacLoader and JacObject and CompositionAspect classes.

Author:
Renaud Pawlak, Lionel Seinturier, Laurent Martelli
See Also:
JacLoader, Jac

Field Summary
static int acs_count
           
static String acsProp
          The jac.prop property string to declare initially woven aspect components.
static String bytecodeModifier
          The name of the bytecode modifier package
static String bytecodeModifierProp
          The name of the property in the the jac.prop file.
static String compositionAspect
           
static String compositionAspectProp
          The jac.prop property string to set the composition aspect class name.
static Hashtable declaredACs
          Stores all the declared aspect components.
static Vector dependentACs
          Store the dependent aspect component pairs.
static String dependentACsProp
          The name of the dependent property in the prop file.
static HashSet dontTranslateFields
          Store the classes whose fields must not be translated
static String dontTranslateFieldsProp
          property name for classes whose fields must not be translated
static Vector incompatibleACs
          Store the exclusive aspect component pairs.
static String incompatibleACsProp
          The name of the incompatible property in the prop file.
static String namingClassDefaultName
          Default class providing a naming service.
static String namingClassName
           
static String namingClassProp
          Property key for the class providing a naming service.
static HashSet packagesToAdapt
          Store the packages (set of classes) translated to be wrappable.
static HashSet packagesToNotAdapt
          Store the packages (set of classes) translated to be not wrappable.
static HashSet packagesToWrap
           
static String propFileName
          The JAC property file name.
static Properties props
          The properties loaded from the jac.prop file.
static String remoteRefClassName
           
static String remRefClassProp
          Property key for the remote reference class.
static String remRefDefaultClassName
          Default remote reference class.
static String startWeavingPlacesProp
          The jac.prop property string to declare when the initially woven aspect components are woven.
static String toAdaptProp
          The name of the property in the the jac.prop file.
static String toNotAdaptProp
          The name of the property in the the jac.prop file.
static String topologyProp
          The name of the property that defines the initial global topology in the jac.prop file.
static String toWrapProp
          The name of the property in the the jac.prop file.
static Hashtable wrappableMethods
          Store the methods that are wrappable (per class)
static String wrappableMethodsProp
          The name of the property in the the jac.prop file.
static Vector wrappingOrder
          Store the default wrapping order.
static String wrappingOrderProp
          The name of the wrapping order property in the prop file.
 
Constructor Summary
JacPropLoader()
           
 
Method Summary
static boolean adaptClass(String className)
          Returns true if the specified class matches the toAdapt property.
static boolean addProps(Properties ps)
          Add some properties.
static boolean doNotAdaptClass(String className)
          Returns true if the specified class matches the toNotAdapt property.
static void loadProps()
          Try to load the properties and set all the internal hash tables in order to be used by the JAC core objects.
static void loadProps(boolean d)
           
static boolean translateFields(String className)
          Returns true if the fields of the specified class must be translated
 
Methods inherited from class org.objectweb.jac.core.JacPropTools
fillListStringProps, fillMapProps, fillSetProps, fillStringProp, getPropsFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propFileName

public static final String propFileName
The JAC property file name.

See Also:
Constant Field Values

toNotAdaptProp

public static final String toNotAdaptProp
The name of the property in the the jac.prop file.

See Also:
Constant Field Values

toAdaptProp

public static final String toAdaptProp
The name of the property in the the jac.prop file.

See Also:
Constant Field Values

wrappableMethodsProp

public static final String wrappableMethodsProp
The name of the property in the the jac.prop file.

See Also:
Constant Field Values

dontTranslateFieldsProp

public static final String dontTranslateFieldsProp
property name for classes whose fields must not be translated

See Also:
Constant Field Values

toWrapProp

public static final String toWrapProp
The name of the property in the the jac.prop file.

See Also:
Constant Field Values

topologyProp

public static final String topologyProp
The name of the property that defines the initial global topology in the jac.prop file.

See Also:
Constant Field Values

acsProp

public static final String acsProp
The jac.prop property string to declare initially woven aspect components.

See Also:
Constant Field Values

startWeavingPlacesProp

public static final String startWeavingPlacesProp
The jac.prop property string to declare when the initially woven aspect components are woven.

See Also:
Constant Field Values

compositionAspectProp

public static final String compositionAspectProp
The jac.prop property string to set the composition aspect class name.

See Also:
Constant Field Values

wrappingOrderProp

public static final String wrappingOrderProp
The name of the wrapping order property in the prop file.

See Also:
Constant Field Values

incompatibleACsProp

public static final String incompatibleACsProp
The name of the incompatible property in the prop file.

See Also:
Constant Field Values

dependentACsProp

public static final String dependentACsProp
The name of the dependent property in the prop file.

See Also:
Constant Field Values

bytecodeModifierProp

public static final String bytecodeModifierProp
The name of the property in the the jac.prop file.

See Also:
Constant Field Values

remRefClassProp

public static final String remRefClassProp
Property key for the remote reference class.

See Also:
Constant Field Values

remRefDefaultClassName

public static final String remRefDefaultClassName
Default remote reference class.

See Also:
Constant Field Values

namingClassProp

public static final String namingClassProp
Property key for the class providing a naming service.

See Also:
Constant Field Values

namingClassDefaultName

public static final String namingClassDefaultName
Default class providing a naming service.

See Also:
Constant Field Values

props

public static Properties props
The properties loaded from the jac.prop file.


packagesToAdapt

public static HashSet packagesToAdapt
Store the packages (set of classes) translated to be wrappable.


packagesToNotAdapt

public static HashSet packagesToNotAdapt
Store the packages (set of classes) translated to be not wrappable.


wrappableMethods

public static Hashtable wrappableMethods
Store the methods that are wrappable (per class)


dontTranslateFields

public static HashSet dontTranslateFields
Store the classes whose fields must not be translated


packagesToWrap

public static HashSet packagesToWrap

compositionAspect

public static String compositionAspect

bytecodeModifier

public static String bytecodeModifier
The name of the bytecode modifier package


remoteRefClassName

public static String remoteRefClassName

namingClassName

public static String namingClassName

declaredACs

public static Hashtable declaredACs
Stores all the declared aspect components.


wrappingOrder

public static Vector wrappingOrder
Store the default wrapping order.


incompatibleACs

public static Vector incompatibleACs
Store the exclusive aspect component pairs.


dependentACs

public static Vector dependentACs
Store the dependent aspect component pairs.


acs_count

public static int acs_count
Constructor Detail

JacPropLoader

public JacPropLoader()
Method Detail

addProps

public static boolean addProps(Properties ps)
Add some properties.

Parameters:
ps - the properties to add
Returns:
true is ps!=null, false otherwise

loadProps

public static void loadProps(boolean d)

loadProps

public static void loadProps()
Try to load the properties and set all the internal hash tables in order to be used by the JAC core objects. No parameters. No returns.


translateFields

public static boolean translateFields(String className)
Returns true if the fields of the specified class must be translated


adaptClass

public static boolean adaptClass(String className)
Returns true if the specified class matches the toAdapt property.


doNotAdaptClass

public static boolean doNotAdaptClass(String className)
Returns true if the specified class matches the toNotAdapt property.