org.mule.config.factories
Class HostNameFactory

java.lang.Object
  extended by org.mule.config.factories.HostNameFactory
All Implemented Interfaces:
PropertyFactory

public class HostNameFactory
extends Object
implements PropertyFactory

Extracts the local hostname from the local system


Field Summary
protected static Log logger
           
 
Constructor Summary
HostNameFactory()
           
 
Method Summary
 Object create(Map<?,?> props)
          Creates a property using code execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
Constructor Detail

HostNameFactory

public HostNameFactory()
Method Detail

create

public Object create(Map<?,?> props)
              throws Exception
Description copied from interface: PropertyFactory
Creates a property using code execution.

Specified by:
create in interface PropertyFactory
Parameters:
props - The map of properties preceeding this
Returns:
an object that will become the value of a property with a name that matches the 'name' attribute on the element.
Throws:
Exception


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.