Package org.apache.muse.core

Examples of org.apache.muse.core.Environment


        // pre-existing consumer is optional - other consumers can
        // still subscribe using WS-N
        //
        if (fileName != null)
        {
            Environment env = getResource().getEnvironment();
            Document eprDoc = env.getDocument(fileName);
            Element eprXML = XmlUtils.getFirstElement(eprDoc);
           
            EndpointReference epr = new EndpointReference(eprXML);
           
            NotificationProducer wsn =
View Full Code Here


      throw new IllegalArgumentException(_MESSAGES.get("NonExistantWSDL"));
    }
   
    File parent = new File(wsdlFile.getAbsoluteFile().getParent());
   
    Environment environment = new LocalEnvironment(parent.getAbsoluteFile());
   
    try {
      Document wsdl = WsdlUtils.createWSDL(
          environment,
          wsdlFile.getName(),
View Full Code Here

        try
        {
            //
            // load the muse.xml descriptor file
            //
            Environment env = createEnvironment();
            DeploymentDescriptor dd = createDeploymentDescriptor();
           
            Document ddXML = env.getDocument(DescriptorConstants.DESCRIPTOR_FILE_NAME);
            dd.load(ddXML, env);
           
            //
            // put all custom serializers in the serializer registry
            //
View Full Code Here

            throw new RuntimeException(_MESSAGES.get("IncompleteMetadataAttributes"));
       
        //
        // load the doc and parse into a descriptor
        //
        Environment env = getEnvironment();
        String path = env.createRelativePath(getWsdlPath(), rmdPath);       
        Document rmdDoc = env.getDocument(path);
       
        Element descriptorXML = WsrmdUtils.getMetadataDescriptor(rmdDoc, rmdName);
       
        if (descriptorXML == null)
        {
View Full Code Here

   
    protected Element getWSDL()
    {
        Resource owner = getResource();
       
        Environment env = owner.getEnvironment();
        String path = owner.getWsdlPath();
       
        Document wsdlDoc = WsdlUtils.createWSDL(env, path, true);
        Element wsdl = XmlUtils.getFirstElement(wsdlDoc);
       
View Full Code Here

    OSGiResourceManager manager = new OSGiResourceManager();
    return manager;
  }
 
  public Bundle getDelegateBundle(){
        Environment env = getEnvironment();
        EndpointReference epr = env.getAddressingContext().getToAddress();
        String address = epr.getAddress().toString();
       
        Iterator keys = contextToBundleMap.keySet().iterator();
        while(keys.hasNext()){
          String currentKey = (String)keys.next();
View Full Code Here

        return _isUsingPersistence;
    }
   
    public Resource newInstance()
    {
        Environment env = getEnvironment();
        Logger log = getLog();
       
        //
        // instantiate the resource object itself
        //
        Class resourceClass = getResourceClass();
        Resource resource = (Resource)ReflectUtils.newInstance(resourceClass);
       
        //
        // give the resource access to all the standard Muse components
        //
        resource.setEnvironment(env);
        resource.setLog(log);
        resource.setContextPath(getContextPath());
        resource.setInitializationParameters(getInitializationParameters());
       
        WsdlConfig wsdl = getWsdlConfig();
        resource.setWsdlPath(wsdl.getWsdlPath());
        resource.setWsdlPortType(wsdl.getWsdlPortType());
       
        //
        // create the unique EPR for the resource using the
        // ID factory specified
        //
        EndpointReference uniqueEPR = env.getDeploymentEPR();
       
        ResourceIdFactory idFactory = getResourceIdFactory();
       
        if (idFactory != null)
        {
View Full Code Here

    {
        Class theClass = getRouterClass();
       
        ResourceRouter router = (ResourceRouter)ReflectUtils.newInstance(theClass);
       
        Environment env = getEnvironment();       
        router.setEnvironment(env);
       
        LoggingConfig logging = getLoggingConfig();       
        Logger log = logging.newInstance();
        router.setLog(log);
View Full Code Here

     */
    protected Resource getTargetResource()
        throws SoapFault
    {
        ResourceManager manager = getResourceManager();
        Environment env = getEnvironment();
        MessageHeaders wsa = env.getAddressingContext();
       
        if (wsa == null)
            throw new RuntimeException(_MESSAGES.get("NoAddressingContext"));
       
        EndpointReference epr = wsa.getToAddress();
View Full Code Here

        Logger log = getLog();
       
        if (log == null)
            throw new IllegalStateException(_MESSAGES.get("NoLogger"));
       
        Environment env = getEnvironment();
       
        if (env == null)
            throw new IllegalStateException(_MESSAGES.get("NoEnvironment"));
       
        Collection definitions = getResourceDefinitions();
View Full Code Here

TOP

Related Classes of org.apache.muse.core.Environment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.