public Deployment deploy(URL url, Context context, ClassLoader parent) throws DeployException
   {
      Connector c = (Connector)context.get(Constants.ATTACHMENT_MERGED_METADATA);
      if (c == null)
         c = (Connector)context.get(Constants.ATTACHMENT_RA_XML_METADATA);

      if (c == null)
         throw new DeployException("No metadata for " + url.toExternalForm() + " found");

      try
      {
         c.validate();
         
         return null;
      }
      catch (Throwable t)
      {
         throw new DeployException("Deployment " + url.toExternalForm() + " failed", t);
      }
   }
public Deployment deploy ( URL url , Context context , ClassLoader parent ) throws DeployException { Connector c = ( Connector ) context . get ( Constants . ATTACHMENT_MERGED_METADATA ) ; if ( c == null ) c = ( Connector ) context . get ( Constants . ATTACHMENT_RA_XML_METADATA ) ; if ( c == null ) throw new DeployException ( "No metadata for " + url . toExternalForm ( ) + " found" ) ; try { c . validate ( ) ; return null ; } catch ( Throwable t ) { throw new DeployException ( "Deployment " + url . toExternalForm ( ) + " failed" , t ) ; } }
{@inheritDoc}