org.mule.module.launcher.domain
Class DomainWrapper

java.lang.Object
  extended by org.mule.module.launcher.artifact.ArtifactWrapper<Domain>
      extended by org.mule.module.launcher.domain.DomainWrapper
All Implemented Interfaces:
Artifact, Domain

public class DomainWrapper
extends ArtifactWrapper<Domain>
implements Domain

Domain wrapper used to notify domain factory that a domain has been disposed.


Constructor Summary
protected DomainWrapper(Domain delegate, DefaultDomainFactory domainFactory)
           
 
Method Summary
 boolean containsSharedResources()
           
 ConfigurationBuilder createApplicationConfigurationBuilder(Application application)
          Creates a ConfigurationBuilder for a certain application which is going to be configured to use the correct domain.
 void dispose()
          Dispose the artifact.
 MuleContext getMuleContext()
           
 
Methods inherited from class org.mule.module.launcher.artifact.ArtifactWrapper
getAppName, getArtifactClassLoader, getArtifactName, getDelegate, getResourceFiles, init, install, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.module.launcher.artifact.Artifact
getArtifactClassLoader, getArtifactName, getResourceFiles, init, install, start, stop
 

Constructor Detail

DomainWrapper

protected DomainWrapper(Domain delegate,
                        DefaultDomainFactory domainFactory)
                 throws IOException
Throws:
IOException
Method Detail

containsSharedResources

public boolean containsSharedResources()
Specified by:
containsSharedResources in interface Domain
Returns:
true if this domain has shared mule components, false if it doesn't

getMuleContext

public MuleContext getMuleContext()
Specified by:
getMuleContext in interface Artifact
Specified by:
getMuleContext in interface Domain
Overrides:
getMuleContext in class ArtifactWrapper<Domain>
Returns:
MuleContext created from the artifact configurations files.

createApplicationConfigurationBuilder

public ConfigurationBuilder createApplicationConfigurationBuilder(Application application)
                                                           throws Exception
Description copied from interface: Domain
Creates a ConfigurationBuilder for a certain application which is going to be configured to use the correct domain.

Specified by:
createApplicationConfigurationBuilder in interface Domain
Parameters:
application - application for which the configuration builder should be created.
Returns:
configuration builder to getDomainClassLoader the application
Throws:
Exception

dispose

public void dispose()
Description copied from interface: Artifact
Dispose the artifact. Most commonly this includes the release of the resources held by the artifact

Specified by:
dispose in interface Artifact
Overrides:
dispose in class ArtifactWrapper<Domain>


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