mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/ccomm/TransportLayerRegistryCallback.java
private void checkLinkLayer(final TransportLayerInternal object) throws FactoryException
    {
        //will throw an exception if the property is not found
        final String linkLayerName = object.getConfig().linkLayerName();
        
        //if the name is not empty try to find the Link Layer
        if (!Strings.isNullOrEmpty(linkLayerName))
        {
            final LinkLayer linkLayer = m_CcomsService.findLinkLayer(linkLayerName);
            if (linkLayer == null)
            {
                throw new FactoryException(String.format("Link Layer [%s] was unable to be fetched.", 
                        linkLayerName));
            }
            else
            {
                object.setLinkLayer(linkLayer);
            }
        }
    }
/** 
     * Check the link layer property and request the necessary object.
     * 
     * @param object
     *      object to check
     * @throws FactoryException
     *      if there is an error in accessing the link layer
     */
Check the link layer property and request the necessary object.

@param object
object to check
@throws FactoryException
if there is an error in accessing the link layer
Check the link layer property and request the necessary object . @param object object to check @throws FactoryException if there is an error in accessing the link layer
private void checkLinkLayer(final TransportLayerInternal object) throws FactoryException
    {
        final String linkLayerName = object.getConfig().linkLayerName();
        if (!Strings.isNullOrEmpty(linkLayerName))
        {
            final LinkLayer linkLayer = m_CcomsService.findLinkLayer(linkLayerName);
            if (linkLayer == null)
            {
                throw new FactoryException(String.format("Link Layer [%s] was unable to be fetched.", 
                        linkLayerName));
            }
            else
            {
                object.setLinkLayer(linkLayer);
            }
        }
    }
private void checkLinkLayer ( final TransportLayerInternal object ) throws FactoryException { final String linkLayerName = object . getConfig ( ) . linkLayerName ( ) ; if ( ! Strings . isNullOrEmpty ( linkLayerName ) ) { final LinkLayer linkLayer = m_CcomsService . findLinkLayer ( linkLayerName ) ; if ( linkLayer == null ) { throw new FactoryException ( String . format ( "Link Layer [%s] was unable to be fetched." , linkLayerName ) ) ; } else { object . setLinkLayer ( linkLayer ) ; } } }
Check the link layer property and request the necessary object.
Check the link layer property and request the necessary object .
//will throw an exception if the property is not found //if the name is not empty try to find the Link Layer