org.entityfs.cap.entityattrs.impl
Interface EntityAttributesPreparer<T extends EntityAttributes>

All Known Implementing Classes:
CreationTimeSetter, UidGidEntityOwnershipSetter

public interface EntityAttributesPreparer<T extends EntityAttributes>

This interface defines an object that is used by the entity attributes-enabling entity delegate to prepare an EntityAttributes object of a newly created entity.

One instance of this class is shared within a file system. As a consequence, implementations may not contain any mutable internal state.

Implementation tip: let an EntityAttributesPreparer proxy another so that preparers can be chained.

Since:
1.0
Author:
Karl Gustafsson
See Also:
AttributesEntityDelegate.setDefaultAttributes(String,ObjectFactory)
In_jar:
entityfs-entity_attributes

Method Summary
 T prepareEntityAttributes(String name, T attr)
          Prepare the entity attributes for the new entity.
 

Method Detail

prepareEntityAttributes

T prepareEntityAttributes(String name,
                          T attr)
Prepare the entity attributes for the new entity.

This method does not have to save the new attributes. That is the responsibility of the caller.

Parameters:
name - The name of the new entity.
attr - The attributes object.
Returns:
The modified attributes instance, (attr).