org.entityfs.cap.entityattrs.unix.metadata
Class DefaultUnixAttributesFactory

java.lang.Object
  extended by org.entityfs.cap.entityattrs.unix.metadata.DefaultUnixAttributesFactory
All Implemented Interfaces:
ObjectFactory<UnixAttributes>

public class DefaultUnixAttributesFactory
extends Object
implements ObjectFactory<UnixAttributes>

This is the default implementation of an ObjectFactory for UnixAttributes. It uses default values for all attribute properties.

Since:
1.0
Author:
Karl Gustafsson
See Also:
MetadataUnixAttributesCapabilityProvider
In_jar:
entityfs-entity_attributes

Constructor Summary
DefaultUnixAttributesFactory(int uid, int gid, UnixEntityMode uem)
          Create a new attributes factory.
 
Method Summary
 UnixAttributes create()
          Create a new instance of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUnixAttributesFactory

public DefaultUnixAttributesFactory(int uid,
                                    int gid,
                                    UnixEntityMode uem)
Create a new attributes factory.

Parameters:
uid - The UID given to all created attributes.
gid - The GID given to all created attributes.
uem - The Unix entity mode given to all created attributes. See UnixEntityMode.
Method Detail

create

public UnixAttributes create()
Description copied from interface: ObjectFactory
Create a new instance of the object.

Specified by:
create in interface ObjectFactory<UnixAttributes>
Returns:
The new instance.