You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by Bogdan Solomon <bs...@ncct.uottawa.ca> on 2007/06/06 20:15:38 UTC
Get Resource Manager Muse 2.2.0
I am trying to build a factory capability that would initialize other
capabilities when it receives requests for creation.
My class definition looks like this:
public class FilterManagerFactoryImpl extends AbstractWsResourceCapability
implements IFilterManagerFactoryImpl
My call to obtain the resource manager looks like this:
ResourceManager manager = getEnvironment().getResourceManager();
According to Eclipse the getEnvironment() method has the signature:
Environment org.apache.muse.core.AbstractCapability.getEnvironment()
However it does not find the getResourceManager() method in the Environmnet
class.
Based on the API provided here:
http://ws.apache.org/muse/docs/2.2.0/javadoc/org/apache/muse/core/Environment.html
Environment does not have a getResourceManager() class.
So I was wondering what am I doing wrong. Am I defining my capability class
parent incorrectly, or has the API changed between 2.1 and 2.2?
--
View this message in context: http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a10994330
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: Get Resource Manager Muse 2.2.0
Posted by "Vinh Nguyen (vinguye2)" <vi...@cisco.com>.
Are you calling this in your initialize() method? Make sure you call
super.initialize() first, else the capability itself won't be
initialized properly.
-----Original Message-----
From: MUSEME [mailto:maehome@yahoo.com]
Sent: Tuesday, June 12, 2007 12:58 PM
To: muse-user@ws.apache.org
Subject: RE: Get Resource Manager Muse 2.2.0
This does not work either. I have tried it. See "Muse Resource not
initialized" topic by MUSEME. If I try to create Resource in my
capability, I get nullpointer exceptions.
Vinh Nguyen (vinguye2) wrote:
>
> Does this fix your issue?
>
>
> -----Original Message-----
> From: Vinh Nguyen (vinguye2)
> Sent: Wednesday, June 06, 2007 11:26 AM
> To: muse-user@ws.apache.org
> Subject: RE: Get Resource Manager Muse 2.2.0
>
> I believe that from within a capability, you can just call:
>
> getResource().getResourceManager()
>
>
> -----Original Message-----
> From: Bogdan Solomon [mailto:bsolomon@ncct.uottawa.ca]
> Sent: Wednesday, June 06, 2007 11:16 AM
> To: muse-user@ws.apache.org
> Subject: Get Resource Manager Muse 2.2.0
>
>
> I am trying to build a factory capability that would initialize other
> capabilities when it receives requests for creation.
>
> My class definition looks like this:
>
> public class FilterManagerFactoryImpl extends
> AbstractWsResourceCapability implements IFilterManagerFactoryImpl
>
> My call to obtain the resource manager looks like this:
>
> ResourceManager manager = getEnvironment().getResourceManager();
>
> According to Eclipse the getEnvironment() method has the signature:
>
> Environment org.apache.muse.core.AbstractCapability.getEnvironment()
>
> However it does not find the getResourceManager() method in the
> Environmnet class.
>
>
> Based on the API provided here:
>
> http://ws.apache.org/muse/docs/2.2.0/javadoc/org/apache/muse/core/Envi
> ro
> nment.html
>
> Environment does not have a getResourceManager() class.
>
>
> So I was wondering what am I doing wrong. Am I defining my capability
> class parent incorrectly, or has the API changed between 2.1 and 2.2?
>
>
> --
> View this message in context:
> http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a
> 10
> 994330
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a11
085357
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: Get Resource Manager Muse 2.2.0
Posted by MUSEME <ma...@yahoo.com>.
This does not work either. I have tried it. See "Muse Resource not
initialized" topic by MUSEME. If I try to create Resource in my capability,
I get nullpointer exceptions.
Vinh Nguyen (vinguye2) wrote:
>
> Does this fix your issue?
>
>
> -----Original Message-----
> From: Vinh Nguyen (vinguye2)
> Sent: Wednesday, June 06, 2007 11:26 AM
> To: muse-user@ws.apache.org
> Subject: RE: Get Resource Manager Muse 2.2.0
>
> I believe that from within a capability, you can just call:
>
> getResource().getResourceManager()
>
>
> -----Original Message-----
> From: Bogdan Solomon [mailto:bsolomon@ncct.uottawa.ca]
> Sent: Wednesday, June 06, 2007 11:16 AM
> To: muse-user@ws.apache.org
> Subject: Get Resource Manager Muse 2.2.0
>
>
> I am trying to build a factory capability that would initialize other
> capabilities when it receives requests for creation.
>
> My class definition looks like this:
>
> public class FilterManagerFactoryImpl extends
> AbstractWsResourceCapability implements IFilterManagerFactoryImpl
>
> My call to obtain the resource manager looks like this:
>
> ResourceManager manager = getEnvironment().getResourceManager();
>
> According to Eclipse the getEnvironment() method has the signature:
>
> Environment org.apache.muse.core.AbstractCapability.getEnvironment()
>
> However it does not find the getResourceManager() method in the
> Environmnet class.
>
>
> Based on the API provided here:
>
> http://ws.apache.org/muse/docs/2.2.0/javadoc/org/apache/muse/core/Enviro
> nment.html
>
> Environment does not have a getResourceManager() class.
>
>
> So I was wondering what am I doing wrong. Am I defining my capability
> class parent incorrectly, or has the API changed between 2.1 and 2.2?
>
>
> --
> View this message in context:
> http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a10
> 994330
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a11085357
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: Get Resource Manager Muse 2.2.0
Posted by "Vinh Nguyen (vinguye2)" <vi...@cisco.com>.
Does this fix your issue?
-----Original Message-----
From: Vinh Nguyen (vinguye2)
Sent: Wednesday, June 06, 2007 11:26 AM
To: muse-user@ws.apache.org
Subject: RE: Get Resource Manager Muse 2.2.0
I believe that from within a capability, you can just call:
getResource().getResourceManager()
-----Original Message-----
From: Bogdan Solomon [mailto:bsolomon@ncct.uottawa.ca]
Sent: Wednesday, June 06, 2007 11:16 AM
To: muse-user@ws.apache.org
Subject: Get Resource Manager Muse 2.2.0
I am trying to build a factory capability that would initialize other
capabilities when it receives requests for creation.
My class definition looks like this:
public class FilterManagerFactoryImpl extends
AbstractWsResourceCapability implements IFilterManagerFactoryImpl
My call to obtain the resource manager looks like this:
ResourceManager manager = getEnvironment().getResourceManager();
According to Eclipse the getEnvironment() method has the signature:
Environment org.apache.muse.core.AbstractCapability.getEnvironment()
However it does not find the getResourceManager() method in the
Environmnet class.
Based on the API provided here:
http://ws.apache.org/muse/docs/2.2.0/javadoc/org/apache/muse/core/Enviro
nment.html
Environment does not have a getResourceManager() class.
So I was wondering what am I doing wrong. Am I defining my capability
class parent incorrectly, or has the API changed between 2.1 and 2.2?
--
View this message in context:
http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a10
994330
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: Get Resource Manager Muse 2.2.0
Posted by "Vinh Nguyen (vinguye2)" <vi...@cisco.com>.
I believe that from within a capability, you can just call:
getResource().getResourceManager()
-----Original Message-----
From: Bogdan Solomon [mailto:bsolomon@ncct.uottawa.ca]
Sent: Wednesday, June 06, 2007 11:16 AM
To: muse-user@ws.apache.org
Subject: Get Resource Manager Muse 2.2.0
I am trying to build a factory capability that would initialize other
capabilities when it receives requests for creation.
My class definition looks like this:
public class FilterManagerFactoryImpl extends
AbstractWsResourceCapability implements IFilterManagerFactoryImpl
My call to obtain the resource manager looks like this:
ResourceManager manager = getEnvironment().getResourceManager();
According to Eclipse the getEnvironment() method has the signature:
Environment org.apache.muse.core.AbstractCapability.getEnvironment()
However it does not find the getResourceManager() method in the
Environmnet class.
Based on the API provided here:
http://ws.apache.org/muse/docs/2.2.0/javadoc/org/apache/muse/core/Enviro
nment.html
Environment does not have a getResourceManager() class.
So I was wondering what am I doing wrong. Am I defining my capability
class parent incorrectly, or has the API changed between 2.1 and 2.2?
--
View this message in context:
http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a10
994330
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org