Package com.tick42.glue.desktop.intents
Class IntentTarget
java.lang.Object
com.tick42.glue.desktop.intents.IntentTarget
Target of the raised intent.
- Since:
- 1.4.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntentTargetapplication(String application) Returns anIntentTargetthat will start a new instance of a specific Intent handler application.static IntentTargetReturns anIntentTargetthat will reuse a specific instance of an Intent handler.booleanbooleanbooleanisReuse()booleanstatic IntentTargetreuse()Returns anIntentTargetthat will try to reuse first available running (i.e.static IntentTargetstartNew()Returns anIntentTargetthat will start a new application instance of the first availableIntentHandler.toString()Returns theStringrepresentation for this target.
-
Method Details
-
startNew
Returns anIntentTargetthat will start a new application instance of the first availableIntentHandler.- Returns:
IntentTargetthat will start a new application instance, nevernull
-
reuse
Returns anIntentTargetthat will try to reuse first available running (i.e. of typeIntentHandlerType.INSTANCE)IntentHandlerinstance. Will fallback to startNew if there are no running instances available.- Returns:
IntentTargetthat will try to reuse a running application instance, nevernull
-
application
Returns anIntentTargetthat will start a new instance of a specific Intent handler application.- Parameters:
application- application name, must not benull- Returns:
IntentTargetthat will start a new instance of specific application, nevernull
-
instance
Returns anIntentTargetthat will reuse a specific instance of an Intent handler.- Parameters:
instance- instance id, must not benull- Returns:
IntentTargetthat will to reuse a specific running application instance, nevernull- See Also:
-
isStartNew
public boolean isStartNew() -
isReuse
public boolean isReuse() -
isApplication
public boolean isApplication() -
isInstance
public boolean isInstance() -
getApplication
-
getInstance
-
toString
Returns theStringrepresentation for this target.
-