Package org.apache.muse.core

Examples of org.apache.muse.core.Environment


     */
    protected NotificationConsumerClient createConsumerClient()
    {
        EndpointReference consumer = getConsumerReference();
        EndpointReference producer = getProducerReference();
        Environment env = getEnvironment();
       
        NotificationConsumerClient client = new NotificationConsumerClient(consumer, producer, env);
        client.setTrace(isUsingTrace());
       
        return client;
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

    {
        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

        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

   
    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

        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

            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

        // 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

     */
    protected NotificationConsumerClient createConsumerClient()
    {
        EndpointReference consumer = getConsumerReference();
        EndpointReference producer = getProducerReference();
        Environment env = getEnvironment();
       
        NotificationConsumerClient client = new NotificationConsumerClient(consumer, producer, env);
        client.setTrace(isUsingTrace());
       
        return client;
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.