org.compass.core.engine.naming
Class DynamicPropertyPath
java.lang.Object
org.compass.core.engine.naming.DynamicPropertyPath
- All Implemented Interfaces:
- PropertyPath
- Direct Known Subclasses:
- DefaultPropertyPath
public class DynamicPropertyPath
- extends Object
- implements PropertyPath
A dynamic path implementations. Holds the path elements in an array,
and constrcut it each time getPath() is called.
Benefits of using this implementation is its low memory footprint,
while extra processing is made for runtime path construction
(mainly during marshalling/unmarshalling operations)
hintStatic() uses the same implementation, and retains its dynamic nature.
- Author:
- kimchy, lexi
- See Also:
DynamicPropertyNamingStrategy
DynamicPropertyPath
public DynamicPropertyPath(String step)
DynamicPropertyPath
public DynamicPropertyPath(String[] steps)
DynamicPropertyPath
public DynamicPropertyPath(PropertyPath root,
String name)
getPath
public String getPath()
- Description copied from interface:
PropertyPath
- Returns the path. Note, the dynamic path construction might occur.
- Specified by:
getPath in interface PropertyPath
hintStatic
public PropertyPath hintStatic()
- Description copied from interface:
PropertyPath
- Compass path construction process will hint on heavily used path
elements that might be better off made static. The implementation
might decide to create a
PropertyPath implementation that
is more static in nature.
- Specified by:
hintStatic in interface PropertyPath
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright (c) 2004-2008 The Compass Project.